Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.03ms] Passed 4 tests
A check of server-side resources used by Website Speed Optimization
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.09 ▲11.57 |
Dashboard /wp-admin | 3.07 ▲0.02 | 43.30 ▼0.35 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.13 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 93.47 ▼555.25 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.38 ▼6.15 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wso-options |
Browser metrics Passed 4 tests
An overview of browser requirements for Website Speed Optimization
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲121 | 15.87 ▲0.22 | 7.77 ▼2.02 | 48.80 ▼5.43 |
Dashboard /wp-admin | 2,989 ▲52 | 6.02 ▼0.06 | 148.12 ▼9.68 | 141.30 ▲22.08 |
Posts /wp-admin/edit.php | 2,752 ▲13 | 2.74 ▼0.08 | 64.52 ▼3.98 | 96.73 ▲4.38 |
Add New Post /wp-admin/post-new.php | 1,572 ▲72 | 15.22 ▼3.47 | 396.14 ▲20.60 | 123.36 ▲6.63 |
Media Library /wp-admin/upload.php | 1,781 ▼26 | 5.02 ▼0.00 | 134.36 ▼21.56 | 149.44 ▲29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- wso-options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/website-speed-optimization/wso_setting.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/website-speed-optimization/wp-website-speed-optimization.php:15
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: website speed optimization
website-speed-optimization/wp-website-speed-optimization.php 77% from 13 tests
The main PHP script in "Website Speed Optimization" version 0.1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("website-speed-optimization.php" instead of "wp-website-speed-optimization.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,715 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 156 | 153 | 1,076 |
CSS | 1 | 1 | 1 | 310 |
JSON | 1 | 0 | 0 | 226 |
JavaScript | 1 | 12 | 6 | 103 |
PHP code Passed 2 tests
This is a short overview 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.59 |
Average class complexity | 47.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 6.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 36 | 80.00% |
▷ Protected methods | 9 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 1.97KB | 1.16KB | ▼ 40.91% |