Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.17MB] [CPU: ▲2.72ms] Passed 4 tests
An overview of server-side resources used by WP Speed of Light
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 37.75 ▼3.74 |
Dashboard /wp-admin | 4.70 ▲1.39 | 51.37 ▲3.58 |
Posts /wp-admin/edit.php | 4.74 ▲1.38 | 56.88 ▲10.16 |
Add New Post /wp-admin/post-new.php | 7.44 ▲1.55 | 102.28 ▲0.88 |
Media Library /wp-admin/upload.php | 4.64 ▲1.41 | 46.44 ▲11.46 |
Speed optimization /wp-admin/admin.php?page=wpsol_speed_optimization | 5.15 | 51.12 |
Speed analysis /wp-admin/admin.php?page=wpsol_speed_analysis | 4.77 | 42.26 |
Dashboard /wp-admin/admin.php?page=wpsol_dashboard | 4.59 | 41.91 |
More SpeedUp /wp-admin/admin.php?page=wpsol_more_speedup | 4.53 | 38.46 |
Server storage [IO: ▲5.14MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Illegal file modification found: 8 files (9.32KB) outside of "wp-content/plugins/wp-speed-of-light/" and "wp-content/uploads/"
- (new file) wp-content/cache/wpsol-minification/css/index.html
- (new file) wp-content/cache/wpsol-minification/js/index.html
- (new file) wp-content/cache/wpsol-minification/.htaccess
- (modified) wp-config.php
- (new file) wp-content/wpsol-config/speed-of-light-config.php
- (new file) wp-content/advanced-cache.php
- (new file) wp-content/cache/wpsol-minification/index.html
- (modified) .htaccess
Filesystem: 162 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
wpsol_jufeedback_version |
wpsol_database_queries_analysis |
can_compress_scripts |
theysaidso_admin_options |
wpsol_db_version |
wpsol_jureview_installation_time |
widget_recent-comments |
wpsol_optimization_settings |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Speed of Light
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲210 | 13.63 ▼0.71 | 8.66 ▲7.01 | 37.46 ▼6.24 |
Dashboard /wp-admin | 2,257 ▲77 | 5.96 ▲0.32 | 97.87 ▼1.56 | 83.63 ▲40.48 |
Posts /wp-admin/edit.php | 2,185 ▲85 | 2.36 ▲0.40 | 38.28 ▼1.04 | 36.57 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,595 ▲60 | 23.13 ▲0.02 | 778.52 ▲121.67 | 36.17 ▼21.32 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.46 ▲0.19 | 97.82 ▼4.77 | 80.66 ▲38.33 |
Speed optimization /wp-admin/admin.php?page=wpsol_speed_optimization | 3,790 | 4.99 | 130.70 | 48.76 |
Speed analysis /wp-admin/admin.php?page=wpsol_speed_analysis | 1,611 | 3.16 | 54.63 | 67.84 |
Dashboard /wp-admin/admin.php?page=wpsol_dashboard | 1,458 | 2.60 | 38.65 | 66.48 |
More SpeedUp /wp-admin/admin.php?page=wpsol_more_speedup | 1,097 | 2.16 | 29.58 | 34.48 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 13 options
- widget_recent-comments
- wpsol_database_queries_analysis
- can_compress_scripts
- theysaidso_admin_options
- wpsol_db_version
- wpsol_jufeedback_version
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- wpsol_cdn_integration
- ...
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-speed-of-light/src/JUCheckRequirements.php
- > /wp-content/plugins/wp-speed-of-light/wp-speed-of-light.php
- > /wp-content/plugins/wp-speed-of-light/src/Cdn/Rewrite.php
- > /wp-content/plugins/wp-speed-of-light/assets/file.php
- > /wp-content/plugins/wp-speed-of-light/src/Rss.php
- > /wp-content/plugins/wp-speed-of-light/src/Rest.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 22 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6, #7 in wp-speed-of-light/assets to your readme.txt
wp-speed-of-light/wp-speed-of-light.php Passed 13 tests
"WP Speed of Light" version 3.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
WP Speed of Light is used to speed up your WP site. It will approach the speed of light
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected32,334 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 1,933 | 4,641 | 14,408 |
JavaScript | 30 | 2,082 | 1,066 | 8,825 |
CSS | 16 | 1,266 | 416 | 7,638 |
SVG | 4 | 0 | 0 | 1,463 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 46.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 1 | 2.70% |
▷ Concrete classes | 36 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 343 | |
▷ Static methods | 116 | 33.82% |
▷ Public methods | 263 | 76.68% |
▷ Protected methods | 45 | 13.12% |
▷ Private methods | 35 | 10.20% |
Functions | 25 | |
▷ Named functions | 14 | 56.00% |
▷ Anonymous functions | 11 | 44.00% |
Constants | 42 | |
▷ Global constants | 23 | 54.76% |
▷ Class constants | 19 | 45.24% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 compressed PNG files occupy 0.42MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default-dashboard.png | 14.22KB | 6.62KB | ▼ 53.47% |
assets/images/ui-icons_cc0000_256x240.png | 3.62KB | 4.11KB | 0.00% |
assets/images/ui-icons_333333_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/ui-icons_999999_256x240.png | 3.68KB | 4.18KB | 0.00% |
assets/images/ui-icons_21759b_256x240.png | 2.97KB | 3.25KB | 0.00% |