84% wp-hide-dashboard

Code Review | WP Hide Dashboard

WordPress plugin WP Hide Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: wp-hide-dashboard
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Oct 20, 2008
  • Latest release: Jan 19, 2015
  • Number of updates: 40
  • Update frequency: every 57.1 days
  • Top authors: kpdesign (85%)DrewAPicture (17.5%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /172,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by WP Hide Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.60 ▼2.53
Dashboard /wp-admin3.33 ▲0.0247.88 ▼7.09
Posts /wp-admin/edit.php3.38 ▲0.0261.63 ▲14.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.83 ▼0.96
Media Library /wp-admin/upload.php3.25 ▲0.0238.27 ▼0.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Hide Dashboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.321.70 ▼0.2943.27 ▼0.20
Dashboard /wp-admin2,198 ▲215.60 ▲0.0685.22 ▼15.1937.89 ▼7.69
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0338.98 ▲2.6835.78 ▼0.15
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▼0.12694.81 ▲5.9265.78 ▲4.97
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0495.56 ▼15.6942.80 ▼4.93

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-hide-dashboard/wp-hide-dashboard.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: hide, admin bar, toolbar, administration, admin...

wp-hide-dashboard/wp-hide-dashboard.php 92% from 13 tests

The primary PHP file in "WP Hide Dashboard" version 2.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 552 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected107 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13485107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions3
▷ Named functions3100.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