84% permalink-manager-for-woocommerce

Code Review | Permalink Manager for WooCommerce

WordPress plugin Permalink Manager for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: permalink-manager...
  • Plugin version: 1.0.8.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2019
  • Latest release: Sep 21, 2023
  • Number of updates: 33
  • Update frequency: every 44.9 days
  • Top authors: dholovnia (66.67%)RazyRx (36.36%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active /23,968 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.27ms] Passed 4 tests

Analyzing server-side resources used by Permalink Manager for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.71 ▲1.81
Dashboard /wp-admin3.43 ▲0.1345.78 ▼0.51
Posts /wp-admin/edit.php3.55 ▲0.1942.08 ▼4.18
Add New Post /wp-admin/post-new.php6.01 ▲0.1389.53 ▲5.54
Media Library /wp-admin/upload.php3.36 ▲0.1335.22 ▼2.19

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Permalink Manager for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.21 ▼0.511.98 ▲0.3246.47 ▲5.82
Dashboard /wp-admin2,198 ▲185.63 ▼0.0484.15 ▼11.0036.30 ▼5.25
Posts /wp-admin/edit.php2,100 ▼02.11 ▲0.0936.47 ▼1.6035.67 ▲1.12
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▲0.22650.17 ▼79.9649.52 ▼10.79
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.1198.02 ▼16.7945.54 ▲0.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/permalink-manager-for-woocommerce/main.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: remove product, woocommerce seo, permalink manager, permalink editor, remove product_category...

permalink-manager-for-woocommerce/main.php 92% from 13 tests

The primary PHP file in "Permalink Manager for WooCommerce" version 1.0.8.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("permalink-manager-for-woocommerce.php" instead of "main.php")

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
There were no executable files found in this plugin538 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110613531
XML1207

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity109.00
▷ Minimum class complexity109.00
▷ Maximum class complexity109.00
Average method complexity5.70
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1773.91%
▷ Protected methods14.35%
▷ Private methods521.74%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin