84% wp-hidden-password-protected-page

Code Review | WP Hidden Password Protected Pages

WordPress plugin WP Hidden Password Protected Pages scored84%from 54 tests.

About plugin

  • Plugin page: wp-hidden-passwor...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Oct 26, 2022
  • Number of updates: 28
  • Update frequency: every 103.2 days
  • Top authors: kimipooh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /25,804 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 successfully, without throwing any errors or notices

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

Server-side resources used by WP Hidden Password Protected Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.40 ▼6.72
Dashboard /wp-admin3.32 ▲0.0246.63 ▼5.11
Posts /wp-admin/edit.php3.37 ▲0.0246.76 ▲0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.78 ▼28.19
Media Library /wp-admin/upload.php3.24 ▲0.0237.35 ▲3.00
WP Hidden Password Protected Pages Settings /wp-admin/options-general.php?page=wp-hidden-password-protected-page/wp-hidden-password-protected-pages.php3.2130.01

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
wp-hidden-password-protected-pages_array
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

WP Hidden Password Protected Pages: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.28 ▼1.092.15 ▲0.1338.72 ▼6.18
Dashboard /wp-admin2,210 ▲254.85 ▼1.05110.15 ▲8.7642.23 ▼0.74
Posts /wp-admin/edit.php2,096 ▲102.05 ▲0.0240.36 ▲6.9435.19 ▼0.74
Add New Post /wp-admin/post-new.php1,545 ▲1618.14 ▼1.10620.09 ▼33.0648.26 ▼8.47
Media Library /wp-admin/upload.php1,392 ▲104.21 ▲0.0197.84 ▼0.2842.19 ▼1.54
WP Hidden Password Protected Pages Settings /wp-admin/options-general.php?page=wp-hidden-password-protected-page/wp-hidden-password-protected-pages.php8762.1528.2330.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-hidden-password-protected-page/wp-hidden-password-protected-pages.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
1 plugin tags: password protected

wp-hidden-password-protected-page/wp-hidden-password-protected-pages.php 85% from 13 tests

The primary PHP file in "WP Hidden Password Protected Pages" version 1.2.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-hidden-password-protected-page.php" instead of "wp-hidden-password-protected-pages.php")

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
There were no executable files found in this plugin188 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22320188

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin