83% remove-taxonomy-slug

Code Review | Remove Taxonomy Slug

WordPress plugin Remove Taxonomy Slug scored83%from 54 tests.

About plugin

  • Plugin page: remove-taxonomy-slug
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2021
  • Latest release: Jun 17, 2023
  • Number of updates: 10
  • Update frequency: every 61.1 days
  • Top authors: akshay.shah5189 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Remove Taxonomy Slug
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.59 ▼3.87
Dashboard /wp-admin3.32 ▲0.0250.80 ▼2.43
Posts /wp-admin/edit.php3.37 ▲0.0248.07 ▼0.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.98 ▼22.47
Media Library /wp-admin/upload.php3.24 ▲0.0239.44 ▲2.17

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Taxonomy Slug
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.28 ▲0.151.86 ▲0.1041.65 ▼3.09
Dashboard /wp-admin2,207 ▲305.59 ▲0.0182.09 ▼21.6839.56 ▼3.97
Posts /wp-admin/edit.php2,112 ▲121.96 ▼0.0638.17 ▲3.1232.90 ▼5.24
Add New Post /wp-admin/post-new.php1,538 ▲1223.18 ▲0.03609.86 ▼49.3551.32 ▼0.32
Media Library /wp-admin/upload.php1,409 ▲94.29 ▲0.1097.34 ▼7.9943.34 ▼1.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Remove_Taxonmy_Slug_Admin' not found in wp-content/plugins/remove-taxonomy-slug/admin/partials/remove-taxonmy-slug-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === remove-taxonomy-slug === )
The official readme.txt might help

remove-taxonomy-slug/remove-taxonmy-slug.php 85% from 13 tests

Analyzing the main PHP file in "Remove Taxonomy Slug" version 1.0.1
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-taxonomy-slug.php" instead of "remove-taxonmy-slug.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
There were no executable files found in this plugin360 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11148518360

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.57
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected