90% admin-toolbox

Code Review | Admin Toolbox

WordPress plugin Admin Toolbox scored90%from 54 tests.

About plugin

  • Plugin page: admin-toolbox
  • Plugin version: 6.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Mar 15, 2017
  • Latest release: Nov 19, 2023
  • Number of updates: 336
  • Update frequency: every 7.3 days
  • Top authors: rermis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /8,076 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.39ms] Passed 4 tests

Server-side resources used by Admin Toolbox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.10 ▼4.42
Dashboard /wp-admin3.45 ▲0.1147.65 ▼12.55
Posts /wp-admin/edit.php3.57 ▲0.2148.61 ▲2.26
Add New Post /wp-admin/post-new.php6.03 ▲0.15106.13 ▲9.14
Media Library /wp-admin/upload.php3.38 ▲0.1542.58 ▲12.54
Admin Toolbox /wp-admin/options-general.php?page=admin-toolbox3.7434.01

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables
wp_atb_pagehits
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
atb_upgrade
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Toolbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.22 ▼0.301.71 ▲0.0139.05 ▼4.86
Dashboard /wp-admin2,201 ▲245.55 ▼0.1297.98 ▼2.4943.90 ▼0.35
Posts /wp-admin/edit.php2,106 ▲61.94 ▼0.0839.22 ▲3.0036.56 ▲0.65
Add New Post /wp-admin/post-new.php1,530 ▼023.27 ▲0.04601.73 ▼49.7253.39 ▼0.62
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.08103.02 ▲8.1045.06 ▲3.68
Admin Toolbox /wp-admin/options-general.php?page=admin-toolbox3,1382.0224.2657.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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)
No browser errors were detected

Optimizations

Plugin configuration 96% 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: 2fa, roles, hide admin menus, admin, track

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

"Admin Toolbox" version 6.0.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be 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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,883 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5322631,882
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.80
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions5298.11%
▷ Anonymous functions11.89%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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/icon-256x256.png5.70KB6.05KB0.00%
assets/screenshot-2.png15.42KB7.63KB▼ 50.51%
assets/banner-772x250.png88.02KB36.00KB▼ 59.10%
assets/screenshot-1.png256.29KB105.54KB▼ 58.82%
assets/AdminToolbox.png2.31KB1.25KB▼ 45.75%