84% athemes-toolbox

Code Review | Athemes Toolbox

WordPress plugin Athemes Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: athemes-toolbox
  • Plugin version: 1.08
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Sep 10, 2016
  • Latest release: Jan 12, 2021
  • Number of updates: 10
  • Update frequency: every 158.5 days
  • Top authors: athemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

6,000+ active /85,091 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.85ms] Passed 4 tests

A check of server-side resources used by Athemes Toolbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.91 ▲1.47
Dashboard /wp-admin3.32 ▲0.0270.10 ▲20.23
Posts /wp-admin/edit.php3.37 ▲0.0255.17 ▲0.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.34 ▼16.39
Media Library /wp-admin/upload.php3.24 ▲0.0138.04 ▼0.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Athemes Toolbox: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.081.77 ▼0.2142.74 ▼0.28
Dashboard /wp-admin2,186 ▲95.58 ▼0.04108.39 ▲14.7648.32 ▲1.74
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0239.81 ▲0.4037.31 ▲2.36
Add New Post /wp-admin/post-new.php1,550 ▲1023.24 ▲4.70677.81 ▼11.5853.96 ▼4.97
Media Library /wp-admin/upload.php1,403 ▲64.33 ▲0.12106.57 ▲5.2645.77 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/athemes-toolbox/inc/post-type-clients.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/projects-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/testimonials-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/employees-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/athemes-toolbox/inc/post-type-services.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/singles-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/clients-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/timeline-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/athemes-toolbox/inc/metaboxes/services-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/athemes-toolbox/inc/post-type-employees.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === athemes-toolbox === )
The official readme.txt is a good inspiration

athemes-toolbox/athemes-toolbox.php Passed 13 tests

The main PHP script in "Athemes Toolbox" version 1.08 is automatically included on every request by WordPress
68 characters long description:
Registers custom post types and custom fields for the aThemes themes

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
There were no executable files found in this plugin906 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14242152906

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity13.50
▷ Minimum class complexity7.00
▷ Maximum class complexity20.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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 files were detected