99% admin-toolbox

Code Review | Admin Toolbox

WordPress plugin Admin Toolbox scored 99% from 54 tests.

About plugin

  • Plugin page: admin-toolbox
  • Plugin version: 5.3.27
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Mar 15, 2017
  • Latest release: Feb 10, 2022
  • Number of updates: 313
  • Update frequency: every 5.7 days
  • Top authors: rermis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 7,089 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼288.93ms] Passed 4 tests

Server-side resources used by Admin Toolbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0260.21 ▼19.94
Dashboard /wp-admin3.43 ▲0.0236.36 ▼0.57
Posts /wp-admin/edit.php3.65 ▲0.0253.02 ▲7.58
Add New Post /wp-admin/post-new.php6.89 ▼0.08125.60 ▼1,136.24
Media Library /wp-admin/upload.php3.31 ▲0.0127.94 ▲1.02
Admin Toolbox /wp-admin/options-general.php?page=admin-toolbox3.7336.38

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 2 new tables, no new options
New tables

Browser metrics Passed 4 tests

Checking browser requirements for Admin Toolbox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲7415.89 ▲0.645.97 ▼0.672.44 ▲0.03
Dashboard /wp-admin2,921 ▲616.08 ▼0.05122.67 ▲0.56157.79 ▼24.46
Posts /wp-admin/edit.php2,719 ▲283.25 ▲0.0171.61 ▲4.65142.22 ▼6.65
Add New Post /wp-admin/post-new.php1,661 ▼11215.64 ▼5.35416.14 ▼41.86213.66 ▲23.29
Media Library /wp-admin/upload.php1,728 ▲305.56 ▼0.02160.21 ▲8.23245.98 ▲50.84
Admin Toolbox /wp-admin/options-general.php?page=admin-toolbox4,1562.4868.97132.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: track, admin, disable, 2fa, role

admin-toolbox/atb_functions.php 85% from 13 tests

The primary PHP file in "Admin Toolbox" version 5.3.27 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-toolbox.php" instead of "atb_functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,061 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.87
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions50100.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
5 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/AdminToolbox.png2.31KB1.25KB▼ 45.75%
assets/screenshot-2.png15.42KB7.63KB▼ 50.51%
assets/banner-772x250.png88.02KB36.00KB▼ 59.10%
assets/screenshot-1.png256.29KB105.54KB▼ 58.82%