Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wp-script-optimizer/wp-script-optimizer.php+96
Undefined index: page
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.13ms] Passed 4 tests
Analyzing server-side resources used by WP Scripts & Styles Optimizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.26 ▼3.14 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.72 ▼15.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.63 ▼4.91 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.45 ▼5.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.95 ▲0.55 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 48 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_script_optimizer |
New WordPress options |
---|
wpso_wp_styles_array |
wpso_current_theme |
theysaidso_admin_options |
widget_recent-comments |
wpso_added_scripts |
widget_recent-posts |
db_upgraded |
wpso_wp_scripts_array |
wpso_db_version |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Scripts & Styles Optimizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.28 ▼0.07 | 1.71 ▲0.04 | 43.83 ▲1.61 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.14 | 82.93 ▼7.37 | 38.15 ▼2.43 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.94 ▼0.09 | 33.33 ▼5.23 | 34.93 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.58 ▲0.54 | 577.95 ▼101.21 | 50.51 ▼11.58 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.20 ▼0.02 | 97.32 ▼3.14 | 46.28 ▼0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-script-optimizer/wp-script-optimizer.php+96
Undefined index: page
- The uninstall procedure failed, leaving 1 table in the database
- wp_script_optimizer
- The uninstall procedure has failed, leaving 16 options in the database
- wpso_added_scripts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- wpso_db_version
- widget_theysaidso_widget
- wpso_handles_moved_down
- wpso_current_theme
- wpso_deleted_styles
- wpso_wp_scripts_array
- ...
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-script-optimizer/templates/admin_page_single.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-script-optimizer/templates/admin_page_global.php:5
- > 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 on the user side
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
Please fix the following attributes:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-script-optimizer/wp-script-optimizer.php Passed 13 tests
The principal PHP file in "WP Scripts & Styles Optimizer" v. 0.4.5 is loaded by WordPress automatically on each request
98 characters long description:
Improve your site-rendering speed by customizing the output of all scripts and styles of your site
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
Everything looks great! No dangerous files found in this plugin9,399 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 59 | 20 | 2,433 |
PHP | 6 | 532 | 552 | 2,160 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 2 | 116 | 3 | 453 |
PO File | 1 | 147 | 234 | 366 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 26 | 40.00% |
▷ Public methods | 57 | 87.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.31% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin