78% wp-not-login-hide-wpnlh

Code Review | WP Not Login Hide (WPNLH)

WordPress plugin WP Not Login Hide (WPNLH) scored78%from 54 tests.

About plugin

  • Plugin page: wp-not-login-hide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.6
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 3, 2016
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: truser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /727 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.31MB] [CPU: ▼12.16ms] Passed 4 tests

Analyzing server-side resources used by WP Not Login Hide (WPNLH)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0047.93 ▲4.86
Dashboard /wp-admin3.31 ▲0.0148.24 ▼1.71
Posts /wp-admin/edit.php3.37 ▲0.0149.79 ▲0.13
Add New Post /wp-admin/post-new.php4.61 ▼1.2842.03 ▼44.26
Media Library /wp-admin/upload.php3.24 ▲0.0134.02 ▼2.81
WPNLH Settings /wp-admin/admin.php?page=wpnlhSettings3.1829.99
WPNLH /wp-admin/admin.php?page=wpnlh3.2032.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Not Login Hide (WPNLH)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.34 ▼0.012.07 ▲0.2943.41 ▼5.04
Dashboard /wp-admin2,224 ▲505.55 ▼0.0886.67 ▼2.7938.13 ▼2.74
Posts /wp-admin/edit.php2,129 ▲291.98 ▼0.0338.74 ▼2.2335.99 ▲0.12
Add New Post /wp-admin/post-new.php6,260 ▲4,73425.97 ▲2.40968.27 ▲301.5865.20 ▲4.45
Media Library /wp-admin/upload.php1,423 ▲234.12 ▼0.0799.90 ▼10.4943.30 ▼2.31
WPNLH Settings /wp-admin/admin.php?page=wpnlhSettings8321.9929.0729.63
WPNLH /wp-admin/admin.php?page=wpnlh8411.9921.3926.64

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wpnlhSettings
    • > Notice in wp-content/plugins/wp-not-login-hide-wpnlh/index.php+63
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-not-login-hide-wpnlh/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: wordpress hide post, wordpress login plugin, wordpress login hide post, hide post, wordpress not login hide...

wp-not-login-hide-wpnlh/index.php 92% from 13 tests

The entry point to "WP Not Login Hide (WPNLH)" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-not-login-hide-wpnlh.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected191 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12216136
PO File116044
CSS20011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin