79% wp-hide-category

Code Review | WP Hide Category

WordPress plugin WP Hide Category scored79%from 54 tests.

About plugin

  • Plugin page: wp-hide-category
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2014
  • Latest release: Jun 27, 2014
  • Number of updates: 17
  • Update frequency: every 7.9 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /12,817 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by WP Hide Category
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.63 ▲0.32
Dashboard /wp-admin3.32 ▲0.0150.85 ▲3.75
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▲0.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.76 ▼6.01
Media Library /wp-admin/upload.php3.24 ▲0.0134.13 ▲1.00
WP Hide Category /wp-admin/options-general.php?page=wp-hide-category-options3.1829.42

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options
wp_hide_category_hide_place
widget_recent-posts
wp_hide_category_id
widget_recent-comments
widget_theysaidso_widget
category_children
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Hide Category
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.041.80 ▼0.2044.24 ▼0.36
Dashboard /wp-admin2,199 ▲285.50 ▼0.0384.52 ▼5.7739.22 ▼1.88
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0536.41 ▼1.6633.06 ▼1.86
Add New Post /wp-admin/post-new.php1,529 ▲323.09 ▼0.22648.49 ▼3.8349.73 ▼5.84
Media Library /wp-admin/upload.php1,407 ▲134.18 ▲0.0393.73 ▼4.5141.27 ▼3.08
WP Hide Category /wp-admin/options-general.php?page=wp-hide-category-options8392.0023.8029.32

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 detected upon uninstall: 9 options
    • category_children
    • wp_hide_category_id
    • widget_theysaidso_widget
    • wp_hide_category_hide_place
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-hide-category-options
    • > Warning in wp-content/plugins/wp-hide-category/options.php+38
    in_array() expects parameter 2 to be array, string given

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-hide-category/wp-hide-category.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hide-category/options.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: category, hide

wp-hide-category/wp-hide-category.php Passed 13 tests

The main file in "WP Hide Category" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Hide specific category in your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected218 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File33435117
PHP21825101

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin