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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▲2.04ms] Passed 4 tests
A check of server-side resources used by Wordpress Environment Beacon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.56 ▼0.12 |
Dashboard /wp-admin | 3.43 ▲0.12 | 47.87 ▼2.46 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.60 ▲6.66 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 100.69 ▲11.57 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.64 ▲4.09 |
PHP Info /wp-admin/edit.php?post_type=phpinfo | 3.39 | 37.59 |
Enviroment Settings /wp-admin/edit.php?post_type=whoami | 3.40 | 37.25 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Environment Beacon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.13 ▼1.25 | 4.44 ▲2.66 | 41.06 ▼2.55 |
Dashboard /wp-admin | 2,253 ▲65 | 5.87 ▲0.06 | 106.85 ▼8.44 | 72.17 ▲25.39 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.00 ▼0.03 | 38.43 ▲3.96 | 37.55 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,563 ▲25 | 23.13 ▼0.18 | 744.55 ▲162.77 | 53.60 ▼7.77 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.22 ▼0.02 | 94.47 ▼6.40 | 79.28 ▲33.18 |
PHP Info /wp-admin/edit.php?post_type=phpinfo | 1,110 | 1.93 | 31.83 | 25.59 |
Enviroment Settings /wp-admin/edit.php?post_type=whoami | 1,153 | 1.95 | 35.57 | 28.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-enviroment-beacon/custom-post-types/cpt-phpinfo.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-enviroment-beacon/confs/save-button.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-enviroment-beacon/custom-post-types/cpt-show-status.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-enviroment-beacon/confs/remove-publish-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-enviroment-beacon/custom-post-types/cpt-show-status.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-enviroment-beacon/confs/menu-page.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Home Wordpress with plugin enabled - see the lower left corner of the menu.), #2 (Wordpress enviroment information saved - In the above example we used the godaddy.), #3 (The second part of the above example.), #4 (All Wordpress settings options (enjoy)!), #5 (All php settings from the Wordpress enviroment phpinfo.)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-enviroment-beacon ===
)
wp-enviroment-beacon/wordpress-enviroment-beacon.php 77% from 13 tests
"Wordpress Environment Beacon" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-enviroment-beacon.php" instead of "wordpress-enviroment-beacon.php")
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
Everything looks great! No dangerous files found in this plugin334 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 58 | 18 | 334 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.69MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 90.73KB | 28.87KB | ▼ 68.18% |
screenshot-2.png | 239.63KB | 83.31KB | ▼ 65.24% |
screenshot-4.png | 99.20KB | 34.55KB | ▼ 65.18% |
screenshot-1.png | 107.91KB | 35.50KB | ▼ 67.11% |
screenshot-5.png | 167.00KB | 42.82KB | ▼ 74.36% |