Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.92ms] Passed 4 tests
A check of server-side resources used by Optimize Scripts & Styles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.44 ▼0.39 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.54 ▼10.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.62 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.50 ▼13.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.66 ▼3.00 |
Optimization /wp-admin/options-general.php?page=spos | 3.27 | 30.10 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Optimize Scripts & Styles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.18 ▼1.20 | 4.38 ▲2.29 | 43.21 ▼1.68 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▼0.02 | 106.78 ▼11.11 | 38.44 ▼9.55 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.02 | 41.43 ▲7.61 | 37.60 ▲5.06 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 18.22 ▼5.21 | 597.58 ▼86.16 | 58.97 ▲6.24 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.24 ▲0.01 | 97.80 ▼11.01 | 41.97 ▼7.93 |
Optimization /wp-admin/options-general.php?page=spos | 1,141 | 2.04 | 24.48 | 35.34 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/optimize-scripts-styles/library/includes/minify/src/JS.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimize-scripts-styles/library/admin.php:6
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/optimize-scripts-styles/library/includes/minify/src/CSS.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optimize-scripts-styles/sp-optimize-scripts.php:16
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/optimize-scripts-styles/library/includes/minify/src/Exceptions/FileImportException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/optimize-scripts-styles/library/includes/path-converter/src/NoConverter.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/optimize-scripts-styles/library/functions.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/optimize-scripts-styles/library/pages/spos-admin.php:137
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/optimize-scripts-styles/library/includes/path-converter/src/Converter.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/optimize-scripts-styles/library/includes/minify/src/Exceptions/BasicException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: performance, seo, combine, optimization, optimize...
optimize-scripts-styles/sp-optimize-scripts.php 92% from 13 tests
The primary PHP file in "Optimize Scripts & Styles" version 1.9.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("optimize-scripts-styles.php" instead of "sp-optimize-scripts.php")
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
There were no executable files found in this plugin2,075 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 530 | 1,324 | 2,075 |
PHP code Passed 2 tests
A brief analysis 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.37 |
Average class complexity | 9.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 3 | 30.00% |
▷ Concrete classes | 7 | 70.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 17 | 31.48% |
▷ Protected methods | 37 | 68.52% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 43 | 78.18% |
▷ Anonymous functions | 12 | 21.82% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected