99% specify-home-hidden-categories

Code Review | Specify Home Hidden Categories

WordPress plugin Specify Home Hidden Categories scored 99% from 54 tests.

About plugin

  • Plugin page: specify-home-hidd...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 5.8.1
  • First release: Dec 4, 2014
  • Latest release: Apr 19, 2019
  • Number of updates: 11
  • Update frequency: every 145.2 days
  • Top authors: yzhs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 2,355 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.06MB] [CPU: ▼143.68ms] Passed 4 tests

A check of server-side resources used by Specify Home Hidden Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.57 ▼0.2720.82 ▼16.68
Dashboard /wp-admin3.07 ▲0.0247.04 ▲2.72
Posts /wp-admin/edit.php3.13 ▲0.0245.51 ▼0.72
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.93 ▼559.08
Media Library /wp-admin/upload.php3.02 ▲0.0233.08 ▲1.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Specify Home Hidden Categories
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.27 ▲0.2510.92 ▲0.9445.94 ▼0.03
Dashboard /wp-admin2,973 ▲425.90 ▼0.08144.12 ▼18.10111.53 ▼2.05
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0264.84 ▼12.2988.14 ▼0.54
Add New Post /wp-admin/post-new.php1,682 ▲18418.92 ▲0.07390.66 ▲3.79109.54 ▲2.34
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.02150.35 ▲2.05118.06 ▲7.36

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 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
The official readme.txt is a good inspiration

specify-home-hidden-categories/index.php 92% from 13 tests

Analyzing the main PHP file in "Specify Home Hidden Categories" version 0.2.2
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("specify-home-hidden-categories.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161973

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.44
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin