Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.63ms] Passed 4 tests
Analyzing server-side resources used by WPSustainable
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.76 ▲2.73 |
Dashboard /wp-admin | 3.31 ▼0.03 | 52.15 ▼14.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.46 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.75 ▼18.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.03 ▼0.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WPSustainable
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲21 | 14.24 ▼0.01 | 1.97 ▲0.11 | 46.39 ▲2.63 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.08 | 94.49 ▼3.34 | 45.13 ▲3.98 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.02 | 38.95 ▼1.14 | 34.49 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 17.90 ▼5.14 | 609.12 ▼9.78 | 74.15 ▲15.80 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.09 | 100.68 ▼3.58 | 44.77 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpsustainable/includes/class-sustainable-health.php
- > /wp-content/plugins/wpsustainable/wpsustainable.php
- > /wp-content/plugins/wpsustainable/badge/class-sustainable-badge.php
- > /wp-content/plugins/wpsustainable/includes/helper-sustainable-api.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #1 in wpsustainable/assets to your readme.txt
wpsustainable/wpsustainable.php Passed 13 tests
This is the main PHP file of "WPSustainable" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Check the sustainability from your hosting company and the CO2 generated by your IP address.
Code Analysis Passed 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 detected400 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 75 | 166 | 278 |
PO File | 1 | 22 | 22 | 79 |
JavaScript | 1 | 2 | 14 | 27 |
JSON | 1 | 0 | 0 | 10 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin