79% wp-category-permalink

Code Review | WP Category Permalink

WordPress plugin WP Category Permalink scored79%from 54 tests.

About plugin

  • Plugin page: wp-category-perma...
  • Plugin version: 3.4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Dec 6, 2018
  • Number of updates: 79
  • Update frequency: every 26.1 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

3,000+ active /96,596 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.09ms] Passed 4 tests

A check of server-side resources used by WP Category Permalink
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.31 ▼4.05
Dashboard /wp-admin3.47 ▲0.1250.74 ▼10.07
Posts /wp-admin/edit.php3.59 ▲0.2347.64 ▼2.41
Add New Post /wp-admin/post-new.php6.07 ▲0.1893.54 ▲11.39
Media Library /wp-admin/upload.php3.39 ▲0.1638.08 ▲4.17
Category Permalink /wp-admin/admin.php?page=wpcp_settings-menu3.3634.41
Dashboard /wp-admin/admin.php?page=meowapps-main-menu3.3435.94

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Category Permalink
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲9614.22 ▼0.021.88 ▼0.1345.58 ▼1.32
Dashboard /wp-admin2,249 ▲725.61 ▼0.04101.04 ▲14.7643.00 ▲5.72
Posts /wp-admin/edit.php2,180 ▲832.03 ▲0.0840.29 ▲3.6440.30 ▲7.20
Add New Post /wp-admin/post-new.php1,581 ▲4623.04 ▲5.09602.38 ▼22.6764.74 ▼33.11
Media Library /wp-admin/upload.php1,454 ▲514.15 ▼0.04100.61 ▲1.3041.43 ▼2.42
Category Permalink /wp-admin/admin.php?page=wpcp_settings-menu9312.0131.6431.33
Dashboard /wp-admin/admin.php?page=meowapps-main-menu1,0632.0127.7336.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=meowapps-main-menu
    • > Deprecated in wp-content/plugins/wp-category-permalink/common/admin.php+393
    implode(): Passing glue string after array is deprecated. Swap the parameters

SRP 50% from 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-category-permalink/common/admin.php:421
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-category-permalink/common/admin.php:421
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-category-permalink/common/admin.php:421

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: permalink, category, woocommerce

wp-category-permalink/wp-category-permalink.php Passed 13 tests

Analyzing the main PHP file in "WP Category Permalink" version 3.4.0
89 characters long description:
Allows manual selection of a 'main' category for each post for better permalinks and SEO.

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
No dangerous file extensions were detected1,155 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP513470782
CSS16813301
JavaScript17072

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity22.25
▷ Minimum class complexity4.00
▷ Maximum class complexity36.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes250.00%
▷ Concrete classes250.00%
▷ Final classes00.00%
Methods42
▷ Static methods1535.71%
▷ Public methods4197.62%
▷ Protected methods12.38%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wpengine.png15.26KB6.67KB▼ 56.29%
common/img/meowapps.png3.54KB3.59KB0.00%
common/img/wpengine.png22.02KB23.25KB0.00%
img/donation.png11.83KB10.53KB▼ 11.07%