93% hide-manager

Code Review | Hide Manager

WordPress plugin Hide Manager scored 93% from 54 tests.

About plugin

  • Plugin page: hide-manager
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 19, 2017
  • Latest release: Dec 22, 2017
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: themebuffer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 583 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼138.39ms] Passed 4 tests

Analyzing server-side resources used by Hide Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0134.24 ▼1.96
Dashboard /wp-admin3.07 ▲0.0149.04 ▲6.33
Posts /wp-admin/edit.php3.16 ▲0.0543.85 ▼0.70
Add New Post /wp-admin/post-new.php5.43 ▲0.0098.23 ▼544.13
Media Library /wp-admin/upload.php3.01 ▲0.0034.24 ▼6.77
Hide Manager /wp-admin/options-general.php?page=hide-manager2.9828.53

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Hide Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.79 ▲0.339.29 ▲1.2052.97 ▲0.22
Dashboard /wp-admin2,975 ▲445.88 ▼0.04134.06 ▼2.52108.55 ▼2.05
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0065.90 ▼4.4686.20 ▼9.82
Add New Post /wp-admin/post-new.php1,675 ▼19718.88 ▼0.33373.20 ▲2.11108.04 ▼7.45
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.01159.06 ▼3.33120.35 ▼5.60
Hide Manager /wp-admin/options-general.php?page=hide-manager1,2102.1457.4981.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hide-manager/hide-manager.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Select option from where to Hide Page Title.), #2 (Select option from where to Hide Post Title.), #3 (Select option from where to Hide Featured Image.), #4 (Select option from where to Hide Comment from Post.), #5 (Select option from where to Hide Comment from Pages.)
  • License uri: Invalid URI ("")
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

hide-manager/hide-manager.php Passed 13 tests

The main PHP script in "Hide Manager" version 1.0.0 is automatically included on every request by WordPress
123 characters long description:
This plugin provides an easy way to Hide Comment from Pages & Posts, Hide Featured Image and Hide Title from Posts & Pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin398 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22554398

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity90.00
▷ Minimum class complexity90.00
▷ Maximum class complexity90.00
Average method complexity12.12
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin