79% hide-and-seek-header

Code Review | Hide and Seek Header

WordPress plugin Hide and Seek Header scored79%from 54 tests.

About plugin

  • Plugin page: hide-and-seek-header
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2020
  • Latest release: Dec 18, 2022
  • Number of updates: 25
  • Update frequency: every 39.7 days
  • Top authors: mlchaves (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /2,891 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.05ms] Passed 4 tests

This is a short check of server-side resources used by Hide and Seek Header
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.74 ▲1.15
Dashboard /wp-admin3.37 ▲0.0645.09 ▼20.41
Posts /wp-admin/edit.php3.48 ▲0.1348.75 ▼4.44
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.66 ▼8.48
Media Library /wp-admin/upload.php3.29 ▲0.0647.57 ▲13.99
Hide and Seek Header /wp-admin/options-general.php?page=hide-and-seek-header3.2731.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Hide and Seek Header
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.25 ▼1.121.67 ▼0.2137.43 ▼10.64
Dashboard /wp-admin2,217 ▲325.84 ▲0.9496.05 ▼13.9039.91 ▲1.30
Posts /wp-admin/edit.php2,094 ▲22.00 ▼0.0139.24 ▲0.3035.13 ▼0.88
Add New Post /wp-admin/post-new.php1,535 ▼218.64 ▲0.40587.91 ▼13.3257.48 ▼3.59
Media Library /wp-admin/upload.php1,396 ▲54.18 ▼0.0294.84 ▼3.5442.14 ▼2.47
Hide and Seek Header /wp-admin/options-general.php?page=hide-and-seek-header8472.0324.3931.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hide-and-seek-header/public/partials/hide-and-seek-header-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hide-and-seek-header/admin/partials/hide-and-seek-header-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: animation, avada, header, hide, html...

hide-and-seek-header/hide-and-seek-header.php Passed 13 tests

The entry point to "Hide and Seek Header" version 1.4.0 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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 plugin392 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP12149529293
CSS694056
JavaScript2104543

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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