Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.75ms] Passed 4 tests
A check of server-side resources used by Sweet Energy Efficiency
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.05 ▲1.32 |
Dashboard /wp-admin | 3.48 ▲0.17 | 46.89 ▼7.32 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 52.50 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 80.18 ▼19.26 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 31.62 ▼5.55 |
Add Graph /wp-admin/admin.php?page=see_add_graph | 3.36 | 34.00 |
Manage Graphs /wp-admin/admin.php?page=sweet-energy-efficiency | 3.36 | 35.86 |
Contact Us /wp-admin/admin.php?page=see_contact | 3.33 | 35.98 |
Server storage [IO: ▲3.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_see_graph |
New WordPress options |
---|
winter_mvc_active_plugins |
can_compress_scripts |
see_db_version |
db_upgraded |
widget_recent-posts |
widget_see_graph_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Sweet Energy Efficiency
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 14.06 ▼0.31 | 4.89 ▲3.04 | 43.85 ▲1.06 |
Dashboard /wp-admin | 2,259 ▲68 | 4.97 ▲0.11 | 108.53 ▲4.45 | 39.30 ▲0.22 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.29 ▲0.27 | 39.21 ▼2.48 | 31.65 ▼7.85 |
Add New Post /wp-admin/post-new.php | 1,563 ▲49 | 17.86 ▲0.47 | 647.03 ▼44.59 | 34.00 ▼19.67 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.39 ▲0.15 | 103.21 ▲1.34 | 43.11 ▼2.18 |
Add Graph /wp-admin/admin.php?page=see_add_graph | 1,137 | 2.59 | 46.77 | 30.59 |
Manage Graphs /wp-admin/admin.php?page=sweet-energy-efficiency | 1,923 | 2.90 | 98.27 | 58.76 |
Contact Us /wp-admin/admin.php?page=see_contact | 993 | 1.90 | 27.94 | 29.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_see_graph
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- see_db_version
- can_compress_scripts
- widget_recent-comments
- widget_see_graph_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- winter_mvc_active_plugins
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sweet-energy-efficiency/public/partials/sweet-energy-efficiency-public-display.php
- > /wp-content/plugins/sweet-energy-efficiency/admin/partials/sweet-energy-efficiency-admin-display.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sweet-energy-efficiency/elementor-elements/views/energy-efficiency.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sweet-energy-efficiency/elementor-elements/elementor-init.php:213
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sweet-energy-efficiency/application/views/see_contact/index.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sweet-energy-efficiency/application/views/sweet-energy-efficiency/index.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sweet-energy-efficiency/vendor/Winter_MVC/init.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sweet-energy-efficiency/widgets/see_graph.php:4
- > PHP Fatal error
Uncaught Error: Class 'CI_Model' not found in wp-content/plugins/sweet-energy-efficiency/application/core/MY_Model.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sweet-energy-efficiency/application/views/see_add_graph/index.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sweet-energy-efficiency/shortcodes/see_graph.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wmvc_show_data() in wp-content/plugins/sweet-energy-efficiency/application/views/layouts/basic.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Manage Energy Efficient Graphs), #2 (Edit Energy Efficient Graph), #3 (Example Energy Efficient Graph in Widget)
sweet-energy-efficiency/sweet-energy-efficiency.php Passed 13 tests
The main PHP file in "Sweet Energy Efficiency" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
Graphically Visually present Energy Efficiency Class / Label / Rating / Scale with related consumption values.
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
Good job! No executable or dangerous file extensions detected23,440 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 8 | 8,421 |
CSS | 15 | 892 | 64 | 6,138 |
PHP | 39 | 1,915 | 1,951 | 5,982 |
JavaScript | 13 | 750 | 821 | 2,696 |
Markdown | 1 | 14 | 0 | 191 |
HTML | 1 | 2 | 0 | 9 |
Sass | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 6 | 2.49% |
▷ Public methods | 216 | 89.63% |
▷ Protected methods | 10 | 4.15% |
▷ Private methods | 15 | 6.22% |
Functions | 114 | |
▷ Named functions | 111 | 97.37% |
▷ Anonymous functions | 3 | 2.63% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/details_open.png | 0.69KB | 0.80KB | 0.00% |
admin/img/details_close.png | 0.67KB | 0.79KB | 0.00% |
admin/resources/details_close.png | 0.67KB | 0.79KB | 0.00% |
admin/resources/details_open.png | 0.69KB | 0.80KB | 0.00% |
admin/resources/logo.png | 0.74KB | 0.87KB | 0.00% |