84% remove-parent-category-from-slug

Code Review | Remove Parent Category from Slug

WordPress plugin Remove Parent Category from Slug scored84%from 54 tests.

About plugin

  • Plugin page: remove-parent-cat...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 4, 2021
  • Latest release: Jul 21, 2023
  • Number of updates: 13
  • Update frequency: every 55.0 days
  • Top authors: siriusproio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,228 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.40ms] Passed 4 tests

An overview of server-side resources used by Remove Parent Category from Slug
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.12 ▼8.06
Dashboard /wp-admin3.31 ▲0.0049.27 ▼2.39
Posts /wp-admin/edit.php3.36 ▲0.0048.13 ▲4.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.24 ▲2.57
Media Library /wp-admin/upload.php3.23 ▲0.0032.11 ▼1.71

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Remove Parent Category from Slug
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.251.79 ▼0.2142.37 ▼1.45
Dashboard /wp-admin2,206 ▲184.87 ▼1.01107.75 ▲0.6437.79 ▼4.24
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0639.84 ▲2.7738.20 ▲1.48
Add New Post /wp-admin/post-new.php1,533 ▼022.99 ▼0.28599.40 ▼77.4556.96 ▲2.76
Media Library /wp-admin/upload.php1,391 ▲64.17 ▲0.0198.68 ▼13.3443.59 ▼1.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-parent-category-from-slug/remove-parent-category-from-slug.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

remove-parent-category-from-slug/remove-parent-category-from-slug.php Passed 13 tests

The entry point to "Remove Parent Category from Slug" version 1.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
Simply Remove Parent Category from Slug and show only child category in WordPress permalink.

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
There were no executable files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11117

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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 are no PNG files in this plugin