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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.91 ▲1.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 70.10 ▲20.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 55.17 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.34 ▼16.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.08 | 1.77 ▼0.21 | 42.74 ▼0.28 |
Dashboard /wp-admin | 2,186 ▲9 | 5.58 ▼0.04 | 108.39 ▲14.76 | 48.32 ▲1.74 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▼0.02 | 39.81 ▲0.40 | 37.31 ▲2.36 |
Add New Post /wp-admin/post-new.php | 1,550 ▲10 | 23.24 ▲4.70 | 677.81 ▼11.58 | 53.96 ▼4.97 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.33 ▲0.12 | 106.57 ▲5.26 | 45.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 242 | 152 | 906 |
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 code | 0.38 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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