84% hidden-wp-admin

Code Review | Hidden WP Admin

WordPress plugin Hidden WP Admin scored84%from 54 tests.

About plugin

  • Plugin page: hidden-wp-admin
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2014
  • Latest release: Feb 11, 2015
  • Number of updates: 13
  • Update frequency: every 18.9 days
  • Top authors: justinbusa (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /14,738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.83ms] Passed 4 tests

An overview of server-side resources used by Hidden WP Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.03 ▲2.48
Dashboard /wp-admin3.33 ▼0.0246.88 ▼12.53
Posts /wp-admin/edit.php3.38 ▲0.0245.41 ▼2.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0280.98 ▼17.17
Media Library /wp-admin/upload.php3.26 ▲0.0233.42 ▲1.32
Hidden WP Admin /wp-admin/options-general.php?page=hidden-wp-admin3.2430.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hidden WP Admin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▲0.151.76 ▼0.0944.12 ▲2.88
Dashboard /wp-admin2,202 ▲225.62 ▼0.0295.00 ▲7.5743.30 ▲3.27
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0234.82 ▼5.6032.47 ▲0.26
Add New Post /wp-admin/post-new.php1,529 ▲123.48 ▲0.27645.78 ▼18.5953.52 ▼6.58
Media Library /wp-admin/upload.php1,401 ▼24.21 ▼0.0895.54 ▼2.3644.36 ▲0.37
Hidden WP Admin /wp-admin/options-general.php?page=hidden-wp-admin8742.0125.2229.08

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
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hidden-wp-admin/hidden-wp-admin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/hidden-wp-admin/includes/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: wp-admin, multisite, admin, login, lockdown...

hidden-wp-admin/hidden-wp-admin.php Passed 13 tests

This is the main PHP file of "Hidden WP Admin" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Hide WP admin, login and signup from all users except those you allow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected233 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45463228
Markdown1305

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.50
▷ Minimum class complexity7.00
▷ Maximum class complexity18.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin