Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼1.16ms] Passed 4 tests
A check of server-side resources used by GreenerWP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 39.69 ▲3.53 |
Dashboard /wp-admin | 3.64 ▲0.29 | 49.10 ▼7.60 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 52.93 ▲5.93 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 89.97 ▼6.48 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 44.09 ▲12.83 |
GreenerWP /wp-admin/admin.php?page=greenerwp | 3.48 | 37.45 |
Settings /wp-admin/admin.php?page=greenerwp_settings | 3.48 | 38.09 |
Recipes /wp-admin/admin.php?page=greenerwp_recipes | 3.48 | 36.00 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_greenerwp_page_views |
New WordPress options |
---|
greenerwp_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_greenerwp_awareness_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GreenerWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲195 | 17.13 ▲2.74 | 3.09 ▲1.44 | 38.23 ▼4.29 |
Dashboard /wp-admin | 2,290 ▲102 | 7.95 ▲3.05 | 233.53 ▲133.36 | 41.82 ▲2.36 |
Posts /wp-admin/edit.php | 2,201 ▲112 | 7.16 ▲5.15 | 85.48 ▲48.67 | 35.57 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,554 ▲12 | 18.62 ▲0.21 | 547.08 ▼99.18 | 32.35 ▼20.01 |
Media Library /wp-admin/upload.php | 1,563 ▲175 | 9.03 ▲4.75 | 124.63 ▲28.69 | 43.40 ▼2.57 |
GreenerWP /wp-admin/admin.php?page=greenerwp | 904 | 6.81 | 59.37 | 34.78 |
Settings /wp-admin/admin.php?page=greenerwp_settings | 940 | 6.75 | 61.16 | 27.90 |
Recipes /wp-admin/admin.php?page=greenerwp_recipes | 1,085 | 7.45 | 61.01 | 34.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_greenerwp_awareness_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/greenerwp/views/frontend/widgets/awareness.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/greenerwp/views/admin/statistics.php:7
- > PHP Notice
Undefined variable: description in wp-content/plugins/greenerwp/views/frontend/widgets/awareness.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/greenerwp/src/UI/Frontend/Widgets/Awareness.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/greenerwp/views/admin/page.php:7
- > PHP Notice
Undefined variable: widget in wp-content/plugins/greenerwp/views/frontend/widgets/awareness-form.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/greenerwp/greenerwp-base.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'GreenerWP\\Pimple' not found in wp-content/plugins/greenerwp/src/Plugin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/greenerwp/views/admin/settings.php:7
- > PHP Notice
Undefined variable: plugin in wp-content/plugins/greenerwp/greenerwp-base.php on line 14
- > PHP Fatal error
Uncaught Error: Call to a member function get_field_id() on null in wp-content/plugins/greenerwp/views/frontend/widgets/awareness-form.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== greenerwp ===
) - Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
greenerwp/greenerwp.php Passed 13 tests
The principal PHP file in "GreenerWP" v. 0.2.4 is loaded by WordPress automatically on each request
71 characters long description:
Assists you in creating environmentally sustainable WordPress websites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,347 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 221 | 415 | 1,265 |
JavaScript | 5 | 0 | 5 | 80 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 108 | 99.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.92% |
Functions | 40 | |
▷ Named functions | 6 | 15.00% |
▷ Anonymous functions | 34 | 85.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
No PNG files were detected