84% elvez-hide-site-header-and-footer

Code Review | Elvez Hide Site Header & Footer

WordPress plugin Elvez Hide Site Header & Footer scored84%from 54 tests.

About plugin

  • Plugin page: elvez-hide-site-h...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2020
  • Latest release: Nov 24, 2021
  • Number of updates: 16
  • Update frequency: every 28.7 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼6.60ms] Passed 4 tests

Analyzing server-side resources used by Elvez Hide Site Header & Footer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.1941.70 ▼9.19
Dashboard /wp-admin3.77 ▲0.1455.75 ▼12.75
Posts /wp-admin/edit.php3.83 ▲0.1558.43 ▲8.63
Add New Post /wp-admin/post-new.php6.29 ▲0.1496.78 ▼3.05
Media Library /wp-admin/upload.php3.61 ▲0.1339.03 ▼1.40
Hide Site Header and Fotter /wp-admin/admin.php?page=elvez-hide-site-header-and-footer3.6142.14

Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elvez Hide Site Header & Footer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,061 ▲31514.91 ▲0.645.33 ▲3.3040.50 ▼9.56
Dashboard /wp-admin2,360 ▲1836.24 ▲0.63116.21 ▲13.8540.85 ▼4.44
Posts /wp-admin/edit.php2,282 ▲1823.43 ▲1.3954.85 ▲16.8135.04 ▼2.26
Add New Post /wp-admin/post-new.php6,317 ▲4,78626.00 ▲2.80899.05 ▲221.1542.83 ▼12.46
Media Library /wp-admin/upload.php1,425 ▲254.15 ▲0.0086.66 ▼19.9443.94 ▼2.93
Hide Site Header and Fotter /wp-admin/admin.php?page=elvez-hide-site-header-and-footer1,0163.1339.6227.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/elvez-hide-site-header-and-footer/admin/partials/elvez-hide-site-header-and-footer-admin-display.php
    • > /wp-content/plugins/elvez-hide-site-header-and-footer/public/partials/elvez-hide-site-header-and-footer-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: footer, page, post, header

elvez-hide-site-header-and-footer/elvez-hide-site-header-and-footer.php 85% from 13 tests

The primary PHP file in "Elvez Hide Site Header & Footer" version 1.0.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,632 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP223441,6001,570
JavaScript640117642
CSS33544284
PO File491152136

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.81
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods126
▷ Static methods4737.30%
▷ Public methods12196.03%
▷ Protected methods00.00%
▷ Private methods53.97%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants35
▷ Global constants12.86%
▷ Class constants3497.14%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected