90% remove-taxonomy-url

Code Review | Remove Taxonomy Url

WordPress plugin Remove Taxonomy Url scored90%from 54 tests.

About plugin

  • Plugin page: remove-taxonomy-url
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 14, 2019
  • Latest release: Oct 27, 2023
  • Number of updates: 19
  • Update frequency: every 74.5 days
  • Top authors: sungraizfaryad (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /7,757 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
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.39ms] Passed 4 tests

Server-side resources used by Remove Taxonomy Url
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.34 ▲1.30
Dashboard /wp-admin3.52 ▲0.2250.08 ▼1.55
Posts /wp-admin/edit.php3.58 ▲0.2154.89 ▲8.08
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.25 ▼18.41
Media Library /wp-admin/upload.php3.36 ▲0.1337.11 ▲5.11
Remove Taxonomy URL /wp-admin/options-general.php?page=rtu_settings_page3.3640.95

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Taxonomy Url
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19014.61 ▼0.121.66 ▲0.0442.05 ▼0.44
Dashboard /wp-admin2,354 ▲1776.33 ▲0.77105.73 ▲13.5937.30 ▼2.00
Posts /wp-admin/edit.php2,288 ▲1853.62 ▲1.6758.37 ▲19.5039.47 ▲1.26
Add New Post /wp-admin/post-new.php1,703 ▲17722.13 ▼1.46669.96 ▲45.6629.11 ▼22.49
Media Library /wp-admin/upload.php1,425 ▲224.38 ▲0.1693.98 ▼1.9845.69 ▲2.78
Remove Taxonomy URL /wp-admin/options-general.php?page=rtu_settings_page1,0333.5349.2131.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • rtu_basics
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: custom taxonomy, taxonomy, slug, taxonomy slug, cpt

remove-taxonomy-url/remove-taxonomy-url.php Passed 13 tests

The entry point to "Remove Taxonomy Url" version 1.0.5 is a PHP file that has certain tags in its header comment area
90 characters long description:
This is a purpose oriented plugin which just removes the custom taxonomies slugs from URL.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected640 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11171708637
JavaScript12273
CSS1040

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.36
Average class complexity12.12
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods58
▷ Static methods23.45%
▷ Public methods5187.93%
▷ Protected methods00.00%
▷ Private methods712.07%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.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