94% access-control-by-category

Code Review | Access Control by Category

WordPress plugin Access Control by Category scored 94% from 54 tests.

About plugin

  • Plugin page: access-control-by...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.9.2
  • First release: Dec 25, 2012
  • Latest release: Dec 26, 2014
  • Number of updates: 21
  • Update frequency: every 34.8 days
  • Top authors: narin1975 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 5,216 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Access Control by Category
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.22 ▲5.32
Dashboard /wp-admin3.41 ▲0.0034.76 ▲1.21
Posts /wp-admin/edit.php3.64 ▲0.0046.11 ▲8.70
Add New Post /wp-admin/post-new.php6.88 ▼0.0998.91 ▼1,156.28
Media Library /wp-admin/upload.php3.29 ▲0.0023.11 ▼3.69

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Access Control by Category
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲3015.88 ▲0.225.89 ▼0.612.05 ▼0.46
Dashboard /wp-admin2,888 ▲276.08 ▼0.13115.67 ▼21.57154.67 ▼3.47
Posts /wp-admin/edit.php2,688 ▼63.23 ▲0.0064.76 ▲1.28144.65 ▼0.06
Add New Post /wp-admin/post-new.php1,661 ▼016.17 ▲0.56425.15 ▼1.86150.70 ▼7.68
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.05137.18 ▼12.62187.08 ▼1.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/access-control-by-category/access-control-by-category.php:20

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

access-control-by-category/access-control-by-category.php 92% from 13 tests

The main PHP file in "Access Control by Category" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 368 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin