84% elvez-hide-entry-header

Code Review | Elvez Hide Entry Header

WordPress plugin Elvez Hide Entry Header scored84%from 54 tests.

About plugin

  • Plugin page: elvez-hide-entry-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Aug 11, 2020
  • Latest release: Aug 23, 2021
  • Number of updates: 12
  • Update frequency: every 31.3 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.11ms] Passed 4 tests

This is a short check of server-side resources used by Elvez Hide Entry Header
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.39 ▼2.65
Dashboard /wp-admin3.33 ▲0.0245.68 ▼4.71
Posts /wp-admin/edit.php3.38 ▲0.0244.38 ▼1.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.49 ▼15.49
Media Library /wp-admin/upload.php3.25 ▲0.0237.38 ▲0.55
Hide Entry Header /wp-admin/admin.php?page=elvez-hide-entry-header3.2130.75

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
elvez_hide_entry_header_hide_wc_products_header
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
elvez_hide_entry_header_hide_page_entry_header
elvez_hide_entry_header_hide_post_entry_header

Browser metrics Passed 4 tests

Elvez Hide Entry Header: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲14113.60 ▼0.687.84 ▲5.8441.02 ▼4.04
Dashboard /wp-admin2,233 ▲424.88 ▼0.0299.25 ▼18.5640.98 ▼9.86
Posts /wp-admin/edit.php2,113 ▲452.00 ▼0.0036.74 ▲1.0134.33 ▼2.34
Add New Post /wp-admin/post-new.php1,537 ▲1823.19 ▲0.29649.80 ▼2.1051.96 ▼0.01
Media Library /wp-admin/upload.php1,409 ▲184.15 ▼0.0798.51 ▼5.1644.96 ▲0.58
Hide Entry Header /wp-admin/admin.php?page=elvez-hide-entry-header8322.0725.2325.31

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • elvez_hide_entry_header_hide_page_entry_header
    • db_upgraded
    • elvez_hide_entry_header_hide_post_entry_header
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • elvez_hide_entry_header_hide_wc_products_header

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/elvez-hide-entry-header/admin/partials/elvez-hide-entry-header-admin-display.php
    • > /wp-content/plugins/elvez-hide-entry-header/public/partials/elvez-hide-entry-header-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: post, header, page, title

elvez-hide-entry-header/elvez-hide-entry-header.php 85% from 13 tests

This is the main PHP file of "Elvez Hide Entry Header" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin554 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12149585312
CSS22838204
PO File16835
JavaScript12273

PHP code Passed 2 tests

Analyzing 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.16
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin