Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EnvironmentLabel::onActivate() should not be called statically
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.60ms] Passed 4 tests
An overview of server-side resources used by WP Environment Label
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.53 ▼5.36 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.05 ▼4.83 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.84 ▼7.11 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 96.45 ▼13.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.47 ▲0.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Environment Label
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.26 ▼0.11 | 1.66 ▼0.24 | 40.20 ▼6.48 |
Dashboard /wp-admin | 2,214 ▲37 | 5.65 ▲0.03 | 91.16 ▼6.18 | 40.86 ▼4.67 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.99 ▼0.04 | 39.84 ▼4.70 | 37.82 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,558 ▲22 | 23.19 ▲0.06 | 645.89 ▲0.13 | 47.56 ▼4.75 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.19 ▲0.00 | 100.34 ▼0.45 | 44.09 ▼1.01 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EnvironmentLabel::onDeactivate() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-environment-label/wp-environment-label.php:15
- > 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 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-environment-label/assets to your readme.txt
wp-environment-label/wp-environment-label.php Passed 13 tests
Analyzing the main PHP file in "WP Environment Label" version 1.1
104 characters long description:
WP Environment Label - shows label with current server/environment name defined by config or admin-panel
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected110 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 26 | 110 |
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.20 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 7 | 63.64% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin