Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.73ms] Passed 4 tests
Server-side resources used by Homepage Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.26 ▲2.25 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.00 ▼2.64 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.33 ▼7.65 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.80 ▼6.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.16 ▲5.15 |
Server storage [IO: ▲0.02MB] [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: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
homepage-control_version |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Homepage Control
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.38 | 1.55 ▼0.13 | 41.62 ▼0.83 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.06 | 97.04 ▲1.76 | 42.46 ▲3.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.05 | 39.06 ▲1.63 | 36.65 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.13 ▲4.96 | 668.10 ▲35.68 | 65.26 ▼3.53 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.20 ▲0.01 | 98.64 ▼3.95 | 46.13 ▼2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- homepage-control_version
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/homepage-control/classes/class-homepage-control-customizer-control.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: homepage, customizer, hooks, components, theme-mod
homepage-control/homepage-control.php Passed 13 tests
The primary PHP file in "Homepage Control" version 2.0.3 is used by WordPress to initiate all plugin functionality
100 characters long description:
Hi! I'm here to assist you with re-ordering or disabling components of your theme's homepage design.
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 detected370 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 70 | 222 | 292 |
CSS | 1 | 5 | 0 | 46 |
JavaScript | 1 | 9 | 0 | 32 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 15 | 65.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 34.78% |
Functions | 1 | |
▷ Named functions | 1 | 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