94% front-end-category-management

Code Review | Front-end Category Management

WordPress plugin Front-end Category Management scored 94% from 54 tests.

About plugin

  • Plugin page: front-end-categor...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 5.8.1
  • First release: Apr 21, 2014
  • Latest release: Dec 22, 2014
  • Number of updates: 6
  • Update frequency: every 41.0 days
  • Top authors: manishkrag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,108 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Front-end Category Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0233.25 ▼1.71
Dashboard /wp-admin3.08 ▲0.0233.69 ▼9.84
Posts /wp-admin/edit.php3.13 ▲0.0237.76 ▼4.54
Add New Post /wp-admin/post-new.php5.43 ▲0.0082.88 ▼575.12
Media Library /wp-admin/upload.php3.02 ▲0.0232.65 ▼0.06

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Front-end Category Management
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.86 ▲0.289.57 ▲1.0843.18 ▼0.99
Dashboard /wp-admin2,992 ▲616.08 ▲0.10132.83 ▼18.98115.06 ▲14.07
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0163.83 ▼2.8989.35 ▼11.06
Add New Post /wp-admin/post-new.php1,672 ▼1118.93 ▲0.19364.25 ▲1.44103.99 ▼3.27
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.01146.33 ▲0.95114.99 ▼11.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/front-end-category-management/front-end-categories-management.php:106

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

front-end-category-management/front-end-categories-management.php 92% from 13 tests

The principal PHP file in "Front-end Category Management" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("front-end-category-management.php" instead of "front-end-categories-management.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
No dangerous file extensions were detected201 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12411104
JavaScript15358
CSS13039

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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

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