Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.21ms] Passed 4 tests
This is a short check of server-side resources used by Unique Headers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 37.93 ▼1.04 |
Dashboard /wp-admin | 3.46 ▲0.15 | 45.82 ▲1.12 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.61 ▲1.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.92 ▼5.57 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 35.58 ▲0.67 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Unique Headers: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲172 | 14.45 ▲0.16 | 1.71 ▲0.09 | 44.88 ▲0.47 |
Dashboard /wp-admin | 2,336 ▲156 | 6.17 ▲0.56 | 111.40 ▲24.81 | 37.54 ▼2.37 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 3.33 ▲1.30 | 55.27 ▲17.55 | 34.48 ▼2.13 |
Add New Post /wp-admin/post-new.php | 6,256 ▲4,730 | 25.84 ▲2.51 | 867.49 ▲212.28 | 40.58 ▼23.56 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.14 ▼0.07 | 79.13 ▼28.39 | 39.72 ▼5.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/unique-headers/index.php
- > /wp-content/plugins/unique-headers/inc/legacy.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Unique_Headers_Core' not found in wp-content/plugins/unique-headers/inc/class-unique-headers-display.php:25
- > PHP Fatal error
Uncaught Error: Class 'Unique_Headers_Core' not found in wp-content/plugins/unique-headers/inc/class-unique-headers-taxonomy-header-images.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (21 tag instead of maximum 10)
unique-headers/index.php 92% from 13 tests
This is the main PHP file of "Unique Headers" version 1.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("unique-headers.php" instead of "index.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
Success! There were no dangerous files found in this plugin731 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 224 | 642 | 573 |
JavaScript | 1 | 42 | 69 | 76 |
PO File | 4 | 20 | 16 | 64 |
JSON | 1 | 0 | 0 | 11 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin