Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.09MB] [CPU: ▲1.27ms] Passed 4 tests
Analyzing server-side resources used by CSS & JavaScript Toolbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 41.98 ▲5.10 |
Dashboard /wp-admin | 4.57 ▲1.26 | 57.90 ▲8.45 |
Posts /wp-admin/edit.php | 4.61 ▲1.25 | 51.00 ▲1.11 |
Add New Post /wp-admin/post-new.php | 7.16 ▲1.27 | 88.60 ▼9.59 |
Media Library /wp-admin/upload.php | 4.50 ▲1.27 | 44.28 ▲9.21 |
Server storage [IO: ▲4.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 650 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for CSS & JavaScript Toolbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 14.68 ▲0.34 | 1.72 ▲0.09 | 44.15 ▲4.33 |
Dashboard /wp-admin | 2,268 ▲91 | 5.64 ▼0.02 | 85.61 ▼2.84 | 71.00 ▲27.42 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 2.05 ▲0.02 | 34.91 ▼1.84 | 38.05 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,593 ▲67 | 23.59 ▲0.34 | 778.38 ▲95.83 | 55.14 ▼1.70 |
Media Library /wp-admin/upload.php | 1,476 ▲79 | 4.25 ▲0.03 | 96.43 ▼4.83 | 80.42 ▲35.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 149× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/css-javascript-toolbox/tables/parameter-typedef.php
- > /wp-content/plugins/css-javascript-toolbox/includes/installer/upgrade/1.1-CE/upgrade.class.php
- > /wp-content/plugins/css-javascript-toolbox/includes/installer/upgrade/0.3/includes/block.class.php
- > /wp-content/plugins/css-javascript-toolbox/tables/blocks.php
- > /wp-content/plugins/css-javascript-toolbox/framework/developer/interface/block/shortcode/parameters/types/raw.php
- > /wp-content/plugins/css-javascript-toolbox/controllers/block.php
- > /wp-content/plugins/css-javascript-toolbox/controllers/auto-upgrade.php
- > /wp-content/plugins/css-javascript-toolbox/framework/developer/interface/block/parameters/types/base/abstract.php
- > /wp-content/plugins/css-javascript-toolbox/views/setup/setup/view.php
- > /wp-content/plugins/css-javascript-toolbox/framework/developer/interface/block/parameters/types/list.php
- 145× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'CJT_Models_Package_Xml_Definition_Interface_Element' not found in wp-content/plugins/css-javascript-toolbox/models/package/xml/definition/abstract.php:9
- > PHP Fatal error
Uncaught Error: Class 'CJT_Models_Package_Xml_Definition_Frag_Frag_Block_Files_File' not found in wp-content/plugins/css-javascript-toolbox/models/package/xml/definition/package/package/block/files/file.php:9
- > PHP Fatal error
Uncaught Error: Class 'CJT_Models_Package_Xml_Definition_Abstract' not found in wp-content/plugins/css-javascript-toolbox/models/package/xml/definition/package/package/objects.php:9
- > PHP Fatal error
Uncaught Error: Class 'cssJSToolbox' not found in wp-content/plugins/css-javascript-toolbox/views/extensions/plugins-list/public/js/plugins/plugins.localization.php:13
- > PHP Fatal error
Uncaught Error: Class 'CJT_Framework_Html_Dom_Elementbase' not found in wp-content/plugins/css-javascript-toolbox/framework/html/dom/element/script.php:6
- > PHP Fatal error
Uncaught Error: Class 'cssJSToolbox' not found in wp-content/plugins/css-javascript-toolbox/views/blocks/manager/public/js/blocks-page/blocks-page.localization.php:13
- > PHP Fatal error
Uncaught Error: Class 'CJT_Models_Package_Xml_Definition_Abstract' not found in wp-content/plugins/css-javascript-toolbox/models/package/xml/definition/frag/frag/block/params/form/groups.php:9
- > PHP Fatal error
Uncaught Error: Class 'CJT_Models_Package_Xml_Definition_Abstract' not found in wp-content/plugins/css-javascript-toolbox/models/package/xml/definition/frag/frag/block/params/form/groups/group/xfields.php:9
- > PHP Fatal error
Uncaught Error: Class 'cssJSToolbox' not found in wp-content/plugins/css-javascript-toolbox/views/blocks/metabox/public/js/metabox/metabox.localization.php:13
- > PHP Warning
Use of undefined constant CJTOOLBOX_FRAMEWORK - assumed 'CJTOOLBOX_FRAMEWORK' (this will throw an Error in a future version of PHP) in wp-content/plugins/css-javascript-toolbox/models/settings/metabox.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Requires at least: Invalid version format
- Requires php: Invalid version format
css-javascript-toolbox/css-js-toolbox.php 92% from 13 tests
The entry point to "CSS & JavaScript Toolbox" version 11.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("css-javascript-toolbox.php" instead of "css-js-toolbox.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 plugin31,411 lines of code in 496 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 71 | 1,340 | 13,500 | 16,234 |
PHP | 379 | 3,547 | 14,679 | 12,639 |
CSS | 31 | 181 | 143 | 1,623 |
SQL | 9 | 59 | 104 | 487 |
PO File | 1 | 155 | 187 | 384 |
HTML | 1 | 0 | 0 | 15 |
SVG | 1 | 1 | 0 | 11 |
JSON | 2 | 0 | 0 | 10 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 325 | |
▷ Abstract classes | 51 | 15.69% |
▷ Concrete classes | 274 | 84.31% |
▷ Final classes | 1 | 0.36% |
Methods | 1,287 | |
▷ Static methods | 110 | 8.55% |
▷ Public methods | 1,103 | 85.70% |
▷ Protected methods | 176 | 13.68% |
▷ Private methods | 8 | 0.62% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 193 | |
▷ Global constants | 73 | 37.82% |
▷ Class constants | 120 | 62.18% |
▷ Public constants | 120 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
77 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/blocks/manager/public/images/toolbox/revert-state.png | 3.33KB | 1.30KB | ▼ 61.06% |
framework/css/images/beautify.png | 2.57KB | 0.76KB | ▼ 70.35% |
framework/css/images/font-large.png | 2.07KB | 0.52KB | ▼ 74.94% |
views/blocks/block/public/images/toolbox/info.png | 2.36KB | 0.80KB | ▼ 65.89% |
views/blocks/manager/public/images/css-js-toolbox-logo.png | 12.73KB | 4.45KB | ▼ 65.04% |