Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.17ms] Passed 4 tests
This is a short check of server-side resources used by H-Display
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.86 ▼0.28 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.54 ▼1.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.49 ▼3.03 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.27 ▼8.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.50 ▲2.63 |
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: 2 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
font_size |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
color |
theysaidso_admin_options |
widget_recent-comments |
bg_color |
txt_align |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for H-Display
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲128 | 13.46 ▼0.89 | 9.16 ▲7.07 | 43.28 ▲0.15 |
Dashboard /wp-admin | 2,210 ▲36 | 5.63 ▼0.03 | 87.62 ▼11.42 | 38.36 ▼3.89 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▼0.01 | 39.19 ▲3.06 | 35.38 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.17 ▼4.90 | 678.79 ▲45.55 | 76.16 ▲16.33 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.22 ▲0.03 | 94.53 ▼6.98 | 43.41 ▲1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 11 options in the database
- txt_align
- widget_theysaidso_widget
- padding
- widget_recent-posts
- theysaidso_admin_options
- color
- can_compress_scripts
- widget_recent-comments
- font_size
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/h-display/tt-hdisplay.php:94
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (This is the a view of a page with H-Display Notification.) image not found
h-display/tt-hdisplay.php 92% from 13 tests
The main PHP file in "H-Display" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("h-display.php" instead of "tt-hdisplay.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 plugin199 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 121 | 199 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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