84% admin-tools

Code Review | Admin Tools

WordPress plugin Admin Tools scored 84% from 54 tests.

About plugin

  • Plugin page: admin-tools
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2016
  • Latest release: Sep 30, 2021
  • Number of updates: 33
  • Update frequency: every 56.9 days
  • Top authors: yehi (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active / 37,018 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▲0.69ms] Passed 4 tests

An overview of server-side resources used by Admin Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.70 ▼3.52
Dashboard /wp-admin3.37 ▲0.0649.41 ▲1.56
Posts /wp-admin/edit.php3.42 ▲0.0652.44 ▲5.60
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.83 ▼0.87
Media Library /wp-admin/upload.php3.29 ▲0.0640.36 ▲5.77
Admin Tools /wp-admin/options-general.php?page=admin-tools3.2944.50

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Admin Tools: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.34 ▼1.024.21 ▲2.4742.99 ▼2.13
Dashboard /wp-admin2,213 ▲224.80 ▼1.10101.83 ▼2.7441.04 ▼6.56
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0139.62 ▼2.8636.04 ▼0.72
Add New Post /wp-admin/post-new.php1,545 ▲1223.24 ▲0.08625.79 ▼64.1253.67 ▲3.50
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0796.07 ▼15.6243.01 ▼5.61
Admin Tools /wp-admin/options-general.php?page=admin-tools1,8383.1443.0030.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/admin-tools/admin-tools.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/admin-tools/uninstall.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

admin-tools/admin-tools.php Passed 13 tests

The main PHP file in "Admin Tools" ver. 1.3.9 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Preparing your customer management interface easily

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
No dangerous file extensions were detected1,335 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28628961
PO File1650147
CSS1327136
JavaScript1181291

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity165.00
▷ Minimum class complexity165.00
▷ Maximum class complexity165.00
Average method complexity7.83
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin