100% remove-taxonomy-base-slug

Code Review | Remove Taxonomy Base Slug

WordPress plugin Remove Taxonomy Base Slug scored 100% from 54 tests.

About plugin

  • Plugin page: remove-taxonomy-b...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9
  • WordPress version: 5.8.1
  • First release: Jul 20, 2013
  • Latest release: Mar 18, 2014
  • Number of updates: 49
  • Update frequency: every 4.9 days
  • Top authors: alexvorn2 (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

9,000+ active / 32,636 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼173.02ms] Passed 4 tests

Server-side resources used by Remove Taxonomy Base Slug
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0433.15 ▼2.67
Dashboard /wp-admin3.12 ▲0.0640.96 ▼2.85
Posts /wp-admin/edit.php3.17 ▲0.0645.02 ▲1.74
Add New Post /wp-admin/post-new.php5.48 ▲0.0489.15 ▼686.45
Media Library /wp-admin/upload.php3.07 ▲0.0632.53 ▼0.09
Remove Taxonomy Base Slug /wp-admin/plugins.php?page=remove_taxonomy_base_slug3.1324.07

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Taxonomy Base Slug
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.03 ▲0.509.65 ▲0.4343.88 ▼6.10
Dashboard /wp-admin2,978 ▲475.89 ▼0.02137.23 ▼13.70110.96 ▼7.97
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0068.33 ▼0.4888.67 ▼2.56
Add New Post /wp-admin/post-new.php3,729 ▲2,05315.24 ▼3.57427.92 ▲65.69104.36 ▼4.97
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.10150.26 ▲2.65116.07 ▲5.49
Remove Taxonomy Base Slug /wp-admin/plugins.php?page=remove_taxonomy_base_slug1,1302.3657.4991.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: taxonomy, slug, rewrite, term, tag...

remove-taxonomy-base-slug/remove-taxonomy-base-slug.php Passed 13 tests

The primary PHP file in "Remove Taxonomy Base Slug" version 2.1 is used by WordPress to initiate all plugin functionality
117 characters long description:
This plugin can remove specific taxonomy base slug from your permalinks (Go to Plugins -> Remove Taxonomy Base Slug).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected603 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP412567351
CSS1350206
JavaScript18346

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected