90% cs-remove-category-base

Code Review | CS Remove Category Base

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

About plugin

  • Plugin page: cs-remove-categor...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Dec 26, 2022
  • Number of updates: 5
  • Update frequency: every 123.2 days
  • Top authors: codeptsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by CS Remove Category Base
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.57 ▲1.48
Dashboard /wp-admin3.34 ▼0.0151.26 ▼17.98
Posts /wp-admin/edit.php3.39 ▲0.0354.74 ▲3.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.29 ▼5.62
Media Library /wp-admin/upload.php3.26 ▲0.0341.49 ▲0.62

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

CS Remove Category Base: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.51 ▲0.341.74 ▲0.0144.48 ▲0.36
Dashboard /wp-admin2,198 ▲215.66 ▼0.0393.19 ▼12.3942.10 ▼2.45
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.1241.38 ▼0.1734.96 ▼1.76
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▲0.14695.88 ▼12.4956.96 ▲4.83
Media Library /wp-admin/upload.php1,403 ▲34.14 ▼0.15100.72 ▼11.8946.86 ▼3.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
There were no plugin tags found

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

The main PHP file in "CS Remove Category Base" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
108 characters long description:
CS Remove Category Base is an easy and useful WordPress Plugin. Use this plugin to remove the category base.

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
There were no executable files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12864111
Markdown1105

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin