84% homepage-control

Code Review | Homepage Control

WordPress plugin Homepage Control scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

19 reviews

Install metrics

10,000+ active /330,102 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.26 ▲2.25
Dashboard /wp-admin3.35 ▲0.0448.00 ▼2.64
Posts /wp-admin/edit.php3.46 ▲0.1050.33 ▼7.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.80 ▼6.89
Media Library /wp-admin/upload.php3.27 ▲0.0440.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.381.55 ▼0.1341.62 ▼0.83
Dashboard /wp-admin2,195 ▲185.59 ▼0.0697.04 ▲1.7642.46 ▲3.49
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0539.06 ▲1.6336.65 ▼0.89
Add New Post /wp-admin/post-new.php1,528 ▼723.13 ▲4.96668.10 ▲35.6865.26 ▼3.53
Media Library /wp-admin/upload.php1,394 ▼34.20 ▲0.0198.64 ▼3.9546.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP470222292
CSS15046
JavaScript19032

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 code0.44
Average class complexity17.67
▷ Minimum class complexity11.00
▷ Maximum class complexity21.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods23
▷ Static methods14.35%
▷ Public methods1565.22%
▷ Protected methods00.00%
▷ Private methods834.78%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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