Benchmarks
Plugin footprint 82% 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.50MB] [CPU: ▲10.67ms] Passed 4 tests
A check of server-side resources used by WP2Speed Faster - Optimize PageSpeed Insights Score 90-100
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.59 | 56.11 ▲14.48 |
Dashboard /wp-admin | 4.83 ▲1.53 | 63.41 ▲12.27 |
Posts /wp-admin/edit.php | 4.88 ▲1.53 | 51.48 ▲6.14 |
Add New Post /wp-admin/post-new.php | 7.35 ▲1.47 | 97.80 ▲9.80 |
Media Library /wp-admin/upload.php | 4.69 ▲1.47 | 51.92 ▲17.71 |
WP2Speed /wp-admin/options-general.php?page=wp2speed | 4.66 | 44.17 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/wp2speed/" and "wp-content/uploads/"
- (new file) wp-content/mmr/.empty
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP2Speed Faster - Optimize PageSpeed Insights Score 90-100
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.23 ▼0.14 | 1.82 ▲0.09 | 42.12 ▼5.39 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.02 | 86.29 ▼6.45 | 42.58 ▲3.39 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.00 | 33.11 ▼3.86 | 35.21 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.66 ▲0.71 | 678.98 ▲52.54 | 52.03 ▲2.47 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▲0.01 | 94.32 ▼6.61 | 42.28 ▲0.67 |
WP2Speed /wp-admin/options-general.php?page=wp2speed | 834 | 2.26 | 26.93 | 26.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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 | 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 take a closer look at the following
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/wp2speed/Minify/src/Exceptions/FileImportException.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp2speed/Minify/src/CSS.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp2speed/lib/template/tpl-dynamic-content.php:12
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp2speed/Minify/src/JS.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp2speed/lib/includes/optimize.php:392
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/wp2speed/Minify/NoConverter.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function hw_config() in wp-content/plugins/wp2speed/lib/plugins/cache.php:712
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/wp2speed/Minify/Converter.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/wp2speed/Minify/src/Exceptions/BasicException.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp2speed/lib/includes/lazy.php:1097
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors field is missing
wp2speed/wp2speed-nocdn.php 92% from 13 tests
The main file in "WP2Speed Faster - Optimize PageSpeed Insights Score 90-100" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp2speed.php" instead of "wp2speed-nocdn.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected7,914 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,330 | 4,223 | 7,552 |
JavaScript | 5 | 25 | 18 | 190 |
CSS | 2 | 17 | 10 | 172 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 78.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 327.00 |
Average method complexity | 6.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 3 | 16.67% |
▷ Concrete classes | 15 | 83.33% |
▷ Final classes | 1 | 6.67% |
Methods | 262 | |
▷ Static methods | 19 | 7.25% |
▷ Public methods | 209 | 79.77% |
▷ Protected methods | 38 | 14.50% |
▷ Private methods | 15 | 5.73% |
Functions | 159 | |
▷ Named functions | 89 | 55.97% |
▷ Anonymous functions | 70 | 44.03% |
Constants | 24 | |
▷ Global constants | 20 | 83.33% |
▷ Class constants | 4 | 16.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/asset/play-btn.png | 1.00KB | 1.19KB | 0.00% |