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.00MB] [CPU: ▼2.34ms] Passed 4 tests
Server-side resources used by WP Display Header
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.68 ▲0.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.52 ▲0.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.84 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.92 ▼12.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.58 ▲3.24 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Display Header
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.69 ▲0.68 | 2.16 ▲0.39 | 40.69 ▼4.92 |
Dashboard /wp-admin | 2,192 ▲15 | 5.60 ▲0.06 | 93.44 ▲5.52 | 43.38 ▼0.36 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.01 | 44.70 ▲7.35 | 37.76 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,525 ▼3 | 23.08 ▼0.03 | 637.49 ▼21.32 | 50.13 ▼8.32 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.02 | 99.02 ▼0.31 | 45.93 ▼5.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Obenland_Wp_Plugins_V5' not found in wp-content/plugins/wp-display-header/class-obenland-wp-display-header.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-display-header/uninstall.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-display-header/wp-display-header.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-display-header/wp-display-header.php 85% from 13 tests
"WP Display Header" version 7...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "7...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected585 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 104 | 420 | 453 |
PO File | 2 | 33 | 74 | 102 |
CSS | 2 | 7 | 0 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 21 | 67.74% |
▷ Protected methods | 9 | 29.03% |
▷ Private methods | 1 | 3.23% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin