Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-energy-usage-calculator/class-wpeuc.php+23
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.89MB] [CPU: ▼54.41ms] Passed 4 tests
A check of server-side resources used by WP Energy Usage Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.84 ▼38.93 |
Dashboard /wp-admin | 2.11 ▼1.19 | 8.07 ▼45.26 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 7.11 ▼42.32 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 7.56 ▼91.14 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.91 ▼27.35 |
WP Energy Usage Calculator /wp-admin/options-general.php?page=wpeuc-settings | 2.11 | 7.89 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wpeuc_data |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Energy Usage Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 14.17 ▼0.21 | 7.57 ▲5.65 | 39.50 ▼4.85 |
Dashboard /wp-admin | 2,222 ▲34 | 5.00 ▲0.12 | 110.19 ▼4.25 | 41.46 ▼4.52 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.22 ▲0.23 | 38.25 ▲3.93 | 33.84 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,525 ▲11 | 17.74 ▲0.16 | 638.29 ▲0.78 | 59.64 ▲12.64 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.38 ▲0.17 | 95.57 ▼7.07 | 43.36 ▲0.96 |
WP Energy Usage Calculator /wp-admin/options-general.php?page=wpeuc-settings | 909 | 2.16 | 23.99 | 45.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-energy-usage-calculator/class-wpeuc.php+23
Trying to access array offset on value of type bool
- Zombie tables detected upon uninstall: 1 table
- wp_wpeuc_data
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 36 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpeuc-settings
- > Notice in wp-content/plugins/wp-energy-usage-calculator/admin/class-wpeuc-admin.php+70
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=wpeuc-settings
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPEUC' not found in wp-content/plugins/wp-energy-usage-calculator/admin/class-wpeuc-admin.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPEUC' not found in wp-content/plugins/wp-energy-usage-calculator/public/class-wpeuc-public.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-energy-usage-calculator/public/wpeuc-public-view.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-energy-usage-calculator/admin/wpeuc-admin-view.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-energy-usage-calculator ===
)
wp-energy-usage-calculator/wpeuc.php 77% from 13 tests
The main PHP script in "WP Energy Usage Calculator" version 0.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-energy-usage-calculator.php" instead of "wpeuc.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,867 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 8 | 1,518 |
PHP | 7 | 76 | 136 | 289 |
JavaScript | 3 | 18 | 33 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected