Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.07ms] Passed 4 tests
A check of server-side resources used by Environment Info
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.31 ▼3.58 |
Dashboard /wp-admin | 3.34 ▲0.03 | 56.30 ▲4.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 54.55 ▲0.58 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 105.77 ▲4.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.87 ▼0.85 |
Environment Info /wp-admin/tools.php?page=environment_info | 3.22 | 35.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Environment Info
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 14.35 ▼0.29 | 2.00 ▼0.27 | 49.75 ▲1.89 |
Dashboard /wp-admin | 2,220 ▲32 | 5.86 ▲0.96 | 122.20 ▲7.57 | 47.92 ▲8.79 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 1.98 ▼0.04 | 42.08 ▲2.55 | 42.57 ▲6.49 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.13 ▼0.11 | 671.92 ▼23.69 | 61.14 ▲6.75 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.21 ▲0.00 | 111.79 ▼1.33 | 49.27 ▲3.64 |
Environment Info /wp-admin/tools.php?page=environment_info | 795 | 2.01 | 29.52 | 32.85 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Palasthotel\\WordPress\\EnvironmentInfo\\add_filter() in wp-content/plugins/environment-info/plugin.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: admin bar, information, dashboard
environment-info/plugin.php 77% from 13 tests
The principal PHP file in "Environment Info" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("environment-info.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin160 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 57 | 135 |
Markdown | 1 | 5 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 1 | |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin