Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.11ms] Passed 4 tests
Server-side resources used by eGreen Web Meter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.88 ▼6.37 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.61 ▼2.57 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.16 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 86.92 ▼6.79 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.44 ▼0.72 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for eGreen Web Meter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲69 | 13.26 ▼1.01 | 2.29 ▲0.19 | 39.06 ▼7.53 |
Dashboard /wp-admin | 2,215 ▲27 | 4.94 ▼0.95 | 110.55 ▼0.45 | 73.18 ▲28.49 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.05 ▲0.02 | 39.17 ▼1.06 | 32.96 ▼5.80 |
Add New Post /wp-admin/post-new.php | 1,551 ▲9 | 23.14 ▲4.91 | 794.98 ▲189.07 | 67.24 ▲16.58 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.26 ▲0.02 | 119.02 ▲18.33 | 45.85 ▲3.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/egreen-web-meter/src/eGreen/View/Script.php
- > /wp-content/plugins/egreen-web-meter/src/eGreen/View/Style.php
- > /wp-content/plugins/egreen-web-meter/egreen.php
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'eGreen\\Core\\Lib\\Pimple' not found in wp-content/plugins/egreen-web-meter/src/eGreen/Core/Lib/Plugin.php:8
- > PHP Notice
Undefined variable: position in wp-content/plugins/egreen-web-meter/src/eGreen/View/Style.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/egreen-web-meter/src/eGreen/View/Style.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'eGreen\\Core\\Helper\\Helper' not found in wp-content/plugins/egreen-web-meter/src/eGreen/Core/Helper/Wordpress.php:6
- > PHP Fatal error
Uncaught Error: Class 'eGreen\\Core\\Lib\\Assets' not found in wp-content/plugins/egreen-web-meter/config/menu.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function form() on null in wp-content/plugins/egreen-web-meter/src/eGreen/View/MainPage.php:2
- > PHP Fatal error
Uncaught Error: Class 'eGreen\\Core\\Helper\\Helper' not found in wp-content/plugins/egreen-web-meter/src/eGreen/Core/Helper/Alert.php:6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/egreen-web-meter/src/eGreen/View/Style.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/egreen-web-meter/src/eGreen/View/Style.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'eGreen\\Core\\Lib\\General' not found in wp-content/plugins/egreen-web-meter/src/eGreen/Core/Lib/Assets.php:6
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== egreen-web-meter ===
)
egreen-web-meter/egreen.php 85% from 13 tests
The entry point to "eGreen Web Meter" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("egreen-web-meter.php" instead of "egreen.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,330 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 322 | 525 | 766 |
CSS | 2 | 11 | 14 | 447 |
PO File | 2 | 30 | 30 | 100 |
JavaScript | 1 | 3 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 10 | 12.82% |
▷ Public methods | 64 | 82.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 17.95% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/big_logo.png | 25.91KB | 2.84KB | ▼ 89.06% |
assets/img/small_logo.png | 22.13KB | 1.01KB | ▼ 95.43% |