Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼9.49ms] Passed 4 tests
A check of server-side resources used by JS & CSS Script Optimizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.74 | 13.05 ▼26.71 |
Dashboard /wp-admin | 3.32 ▲0.01 | 56.09 ▲1.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.78 ▲2.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.05 ▼7.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.33 ▼5.80 |
Script Optimizer /wp-admin/options-general.php?page=script-optimizer | 3.18 | 37.20 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/js-css-script-optimizer/" and "wp-content/uploads/"
- (new file) wp-content/cache/scripts/.empty
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
JS & CSS Script Optimizer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.12 | 1.65 ▼0.29 | 42.31 ▼0.69 |
Dashboard /wp-admin | 2,196 ▲19 | 5.51 ▼0.18 | 83.16 ▼5.04 | 38.76 ▼5.49 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.05 ▲0.02 | 39.90 ▲2.39 | 35.36 ▼7.13 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 22.97 ▼0.03 | 646.05 ▼15.00 | 54.34 ▼0.97 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.11 ▼0.11 | 103.67 ▲1.49 | 45.41 ▼0.73 |
Script Optimizer /wp-admin/options-general.php?page=script-optimizer | 1,112 | 1.68 | 27.93 | 31.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=script-optimizer
- > Notice in wp-content/plugins/js-css-script-optimizer/backend.php+115
Undefined index: enable-plugin
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/js-css-script-optimizer/js-css-script-optimizer.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function content_url() in wp-content/plugins/js-css-script-optimizer/js-css-script-optimizer.php:12
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/js-css-script-optimizer/js-css-script-optimizer.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (YSlow speed test after installation) image missing
js-css-script-optimizer/js-css-script-optimizer.php 92% from 13 tests
The principal PHP file in "JS & CSS Script Optimizer" v. 0.3.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 270 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,464 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 364 | 555 | 2,016 |
PO File | 3 | 183 | 192 | 448 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 45.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 46 | 49.46% |
▷ Public methods | 46 | 49.46% |
▷ Protected methods | 9 | 9.68% |
▷ Private methods | 38 | 40.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 2 | 11.76% |
▷ Class constants | 15 | 88.24% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.57MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 36.20KB | 14.93KB | ▼ 58.77% |
screenshot-1.png | 69.51KB | 30.42KB | ▼ 56.24% |
screenshot-5.png | 227.40KB | 66.97KB | ▼ 70.55% |
screenshot-4.png | 204.60KB | 67.21KB | ▼ 67.15% |
screenshot-3.png | 45.88KB | 19.70KB | ▼ 57.07% |