Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼117.50ms] Passed 4 tests
Server-side resources used by LH Response Handler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 107.29 ▲67.05 |
Dashboard /wp-admin | 3.41 ▲0.03 | 49.09 ▼466.77 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.87 ▼3.76 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 87.32 ▼2.91 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.38 ▲3.45 |
Responses /wp-admin/edit.php?post_type=lh_response-url | 3.38 | 39.84 |
Server storage [IO: ▲0.02MB] [DB: ▼0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
lh_response-status_code_children |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LH Response Handler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲53 | 14.21 ▼0.06 | 1.62 ▼0.01 | 46.13 ▲2.59 |
Dashboard /wp-admin | 2,199 ▲19 | 5.60 ▼0.09 | 95.65 ▲7.59 | 38.07 ▲0.44 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▲0.06 | 35.91 ▲0.79 | 34.13 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.08 ▲2.20 | 624.43 ▼87.09 | 49.60 ▼24.00 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.21 ▲0.00 | 97.18 ▼39.40 | 43.89 ▼6.42 |
Responses /wp-admin/edit.php?post_type=lh_response-url | 1,087 | 1.96 | 32.28 | 30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- lh_response-status_code_children
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: 404, 410, redirect, multisite, status code
lh-response-handler/lh-response-handler.php 92% from 13 tests
The primary PHP file in "LH Response Handler" version 1.00 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- 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 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected313 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 287 | 28 | 313 |
PHP code Passed 2 tests
A short review 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.44 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 25 | |
▷ Static methods | 14 | 56.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin