79% remove-category-url

Code Review | Remove Category URL

WordPress plugin Remove Category URL scored79%from 54 tests.

About plugin

  • Plugin page: remove-category-url
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.3
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Jan 27, 2020
  • Number of updates: 16
  • Update frequency: every 127.2 days
  • Top authors: valeriosza (93.75%)creativemotion (12.5%)

Code review

54 tests

User reviews

57 reviews

Install metrics

60,000+ active /398,177 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.08MB] [CPU: ▼41.68ms] Passed 4 tests

Analyzing server-side resources used by Remove Category URL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.40 ▼0.88
Dashboard /wp-admin2.87 ▼0.4717.81 ▼40.94
Posts /wp-admin/edit.php2.88 ▼0.4821.70 ▼25.64
Add New Post /wp-admin/post-new.php2.87 ▼3.0118.82 ▼85.09
Media Library /wp-admin/upload.php2.88 ▼0.3517.53 ▼15.06

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
wbcr_rmcaturl__activated_on
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Category URL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.38 ▲0.011.87 ▲0.2138.30 ▼0.73
Dashboard /wp-admin2,232 ▲585.67 ▲0.0093.02 ▲0.1340.70 ▼0.02
Posts /wp-admin/edit.php2,138 ▲382.14 ▲0.1843.08 ▲6.4937.84 ▲5.97
Add New Post /wp-admin/post-new.php1,553 ▲2022.93 ▼0.22635.86 ▲19.6464.26 ▼10.89
Media Library /wp-admin/upload.php1,434 ▲344.29 ▲0.09100.67 ▼2.7241.93 ▼0.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/../mu-plugins): failed to open dir: No such file or directory
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • wbcr_rmcaturl__activated_on

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

remove-category-url/remove-category-url.php 92% from 13 tests

This is the main PHP file of "Remove Category URL" version 1.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected287 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP498181287

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods630.00%
▷ Protected methods00.00%
▷ Private methods1470.00%
Functions7
▷ Named functions7100.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