90% wp-remove-category-base

Code Review | WP Remove Category Base

WordPress plugin WP Remove Category Base scored90%from 54 tests.

About plugin

  • Plugin page: wp-remove-categor...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Aug 17, 2015
  • Number of updates: 6
  • Update frequency: every 70.2 days
  • Top authors: ezraverheijen (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

30,000+ active /70,971 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼7.97ms] Passed 4 tests

Analyzing server-side resources used by WP Remove Category Base
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.96 ▼2.34
Dashboard /wp-admin3.32 ▼0.0251.27 ▼20.39
Posts /wp-admin/edit.php3.37 ▲0.0248.49 ▼2.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.56 ▼6.85
Media Library /wp-admin/upload.php3.25 ▲0.0235.61 ▼2.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Remove Category Base
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.23 ▲0.732.33 ▼4.1041.91 ▼3.99
Dashboard /wp-admin2,198 ▲185.53 ▼0.0484.54 ▼10.1439.68 ▼4.77
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0140.36 ▲2.7436.72 ▲0.76
Add New Post /wp-admin/post-new.php1,526 ▼223.36 ▲0.22634.28 ▼48.6256.02 ▲2.76
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0496.77 ▼7.0141.95 ▼3.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: category slug, category base, category prefix

wp-remove-category-base/wp-remove-category-base.php Passed 13 tests

The primary PHP file in "WP Remove Category Base" version 1.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Removes the category base slug from the category archive permalinks.

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
Good job! No executable or dangerous file extensions detected78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1252678

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin