Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.34ms] Passed 4 tests
Analyzing server-side resources used by WordPress Environment Indicator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.53 ▲0.05 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.48 ▼0.43 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 42.90 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.61 ▼2.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.34 ▲6.67 |
WP Environment Indicator /wp-admin/options-general.php?page=wp_environment_indicator_fields | 3.25 | 31.23 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Environment Indicator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.03 | 1.79 ▼0.04 | 43.14 ▼0.33 |
Dashboard /wp-admin | 2,210 ▲18 | 4.86 ▼0.07 | 112.13 ▼4.62 | 44.29 ▲0.14 |
Posts /wp-admin/edit.php | 2,075 ▼14 | 2.06 ▲0.06 | 35.92 ▼1.85 | 33.08 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 18.50 ▼4.41 | 625.41 ▼58.86 | 56.03 ▼5.41 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.17 ▼0.05 | 96.19 ▼1.54 | 40.88 ▼3.55 |
WP Environment Indicator /wp-admin/options-general.php?page=wp_environment_indicator_fields | 806 | 2.06 | 24.82 | 27.93 |
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: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-environment-indicator ===
)
wp-environment-indicator/wp-environment-indicator.php Passed 13 tests
The primary PHP file in "WordPress Environment Indicator" version 1.0.1 is used by WordPress to initiate all plugin functionality
76 characters long description:
Displays an indicator above the admin bar indicating the current environment
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin266 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 64 | 367 | 214 |
SVG | 3 | 0 | 2 | 31 |
CSS | 3 | 5 | 12 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 25.50KB | 7.57KB | ▼ 70.33% |
assets/icon-128x128.png | 5.48KB | 3.40KB | ▼ 38.01% |