Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.52ms] Passed 4 tests
Server-side resources used by Toolbar For JCH Optimize
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.92 ▲10.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.11 ▼13.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.34 ▼0.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.48 ▼11.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.12 ▼1.33 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Toolbar For JCH Optimize
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.13 | 1.73 ▲0.13 | 40.91 ▲1.44 |
Dashboard /wp-admin | 2,198 ▲21 | 5.67 ▲0.07 | 84.07 ▼8.93 | 37.41 ▼12.62 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.02 | 41.36 ▲4.41 | 42.00 ▲6.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.20 ▲0.17 | 673.11 ▼15.98 | 59.28 ▲2.95 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.00 | 96.27 ▼6.48 | 41.26 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-jch-optimize/jch-optimize-toolbar.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: jch optimize toolbar, page cache, clear cache, jch optimize, jch...
toolbar-jch-optimize/jch-optimize-toolbar.php 77% from 13 tests
The main file in "Toolbar For JCH Optimize" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("toolbar-jch-optimize.php" instead of "jch-optimize-toolbar.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,439 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 461 | 751 | 1,890 |
CSS | 1 | 36 | 7 | 214 |
Markdown | 1 | 65 | 0 | 179 |
JavaScript | 1 | 12 | 9 | 89 |
JSON | 2 | 0 | 0 | 67 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 6 | 5.00% |
▷ Public methods | 84 | 70.00% |
▷ Protected methods | 6 | 5.00% |
▷ Private methods | 30 | 25.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 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