89% botrx-detx

Code Review | BotRx DeTx Plugin

WordPress plugin BotRx DeTx Plugin scored89%from 54 tests.

About plugin

  • Plugin page: botrx-detx
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6.19+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 8, 2019
  • Latest release: Aug 12, 2020
  • Number of updates: 22
  • Update frequency: every 13.0 days
  • Top authors: botrxsupport (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /988 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.09MB] [CPU: ▼11.67ms] Passed 4 tests

Server-side resources used by BotRx DeTx Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.48 ▼0.987.98 ▼33.09
Dashboard /wp-admin3.52 ▲0.1753.41 ▼18.99
Posts /wp-admin/edit.php3.63 ▲0.2849.67 ▲1.54
Add New Post /wp-admin/post-new.php6.10 ▲0.21102.88 ▲4.83
Media Library /wp-admin/upload.php3.44 ▲0.2141.65 ▲3.85

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for BotRx DeTx Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.63 ▼0.681.86 ▲0.0343.20 ▼5.88
Dashboard /wp-admin2,206 ▲185.79 ▼0.11102.68 ▼6.1474.57 ▲36.78
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0333.80 ▼2.5233.47 ▼1.73
Add New Post /wp-admin/post-new.php1,527 ▼617.56 ▼5.48779.59 ▲82.5758.95 ▲5.92
Media Library /wp-admin/upload.php1,394 ▲124.12 ▼0.17138.50 ▲23.2992.30 ▲37.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

botrx-detx/botrx-detx-plugin.php 92% from 13 tests

"BotRx DeTx Plugin" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("botrx-detx.php" instead of "botrx-detx-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,488 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity84.00
▷ Minimum class complexity4.00
▷ Maximum class complexity164.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1420.90%
▷ Public methods6394.03%
▷ Protected methods45.97%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings