100% zacwp-hide-plugin

Code Review | ZacWP Plugins Extended: Hide, Order & Sort

WordPress plugin ZacWP Plugins Extended: Hide, Order & Sort scored 100% from 54 tests.

About plugin

  • Plugin page: zacwp-hide-plugin
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 5.9.2
  • First release: Aug 7, 2019
  • Latest release: Aug 15, 2020
  • Number of updates: 7
  • Update frequency: every 53.4 days
  • Top authors: djunehor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 378 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼322.49ms] Passed 4 tests

Server-side resources used by ZacWP Plugins Extended: Hide, Order & Sort
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0855.96 ▲0.97
Dashboard /wp-admin3.49 ▲0.0839.12 ▼1.61
Posts /wp-admin/edit.php3.71 ▲0.0842.45 ▲4.00
Add New Post /wp-admin/post-new.php6.95 ▼0.02107.87 ▼1,286.64
Media Library /wp-admin/upload.php3.37 ▲0.0729.71 ▼2.69
ZacWP Plugin Setting /wp-admin/options-general.php?page=zacwp_po_settings3.3428.31

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
zacwp_po_plugins_log

Browser metrics Passed 4 tests

Checking browser requirements for ZacWP Plugins Extended: Hide, Order & Sort
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.90 ▲0.135.79 ▼0.973.07 ▲0.11
Dashboard /wp-admin2,897 ▲435.99 ▼0.15115.67 ▼30.31174.92 ▼18.26
Posts /wp-admin/edit.php2,696 ▲83.23 ▲0.0066.09 ▼0.38170.28 ▲16.07
Add New Post /wp-admin/post-new.php1,755 ▲9221.59 ▲0.67486.16 ▲28.78219.16 ▲49.38
Media Library /wp-admin/upload.php1,703 ▲55.56 ▲0.09163.67 ▲13.80217.74 ▲20.54
ZacWP Plugin Setting /wp-admin/options-general.php?page=zacwp_po_settings1,1922.4356.93194.17

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: plugin order, plugins hide, plugin info, plugins, plugins sort...

zacwp-hide-plugin/index.php 92% from 13 tests

This is the main PHP file of "ZacWP Plugins Extended: Hide, Order & Sort" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zacwp-hide-plugin.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin326 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16965309
CSS14017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin