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.02MB] [CPU: ▼7.71ms] Passed 4 tests
Analyzing server-side resources used by HFS Controller
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.75 ▼5.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.71 ▼5.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.48 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.83 ▼18.66 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.46 ▼0.94 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HFS Controller
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.64 ▼0.72 | 1.77 ▼0.31 | 41.24 ▼4.76 |
Dashboard /wp-admin | 2,225 ▲34 | 4.83 ▼0.99 | 98.32 ▼3.54 | 38.72 ▼1.96 |
Posts /wp-admin/edit.php | 2,084 ▼8 | 2.02 ▼0.01 | 39.80 ▲0.28 | 35.91 ▲2.25 |
Add New Post /wp-admin/post-new.php | 6,284 ▲4,742 | 25.91 ▲7.33 | 826.84 ▲202.22 | 55.23 ▲1.03 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.18 ▲0.00 | 99.37 ▲3.06 | 41.43 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/hfs-controller/hfs-controller.php:20
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
hfs-controller/hfs-controller.php Passed 13 tests
The main PHP file in "HFS Controller" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
A plugin that gives you control over different templates for header, footer and even sidebar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected298 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 9 | 298 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 6.20 |
▷ 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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.39KB | 22.76KB | ▼ 49.85% |
screenshot-2.png | 43.20KB | 21.60KB | ▼ 50.00% |
screenshot-3.png | 49.16KB | 24.85KB | ▼ 49.46% |