90% product-id-permalink-for-woocommerce

Code Review | Product ID Permalink for WooCommerce

WordPress plugin Product ID Permalink for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: product-id-permal...
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.8-3.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Jan 17, 2016
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.51ms] Passed 4 tests

Analyzing server-side resources used by Product ID Permalink for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.51 ▼2.50
Dashboard /wp-admin3.32 ▼0.0345.32 ▼19.02
Posts /wp-admin/edit.php3.37 ▲0.0145.53 ▼8.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.06 ▼7.99
Media Library /wp-admin/upload.php3.24 ▲0.0134.39 ▼2.44

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Product ID Permalink for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.101.81 ▲0.3039.64 ▼2.94
Dashboard /wp-admin2,195 ▲185.56 ▼0.3088.18 ▼7.7841.44 ▼1.85
Posts /wp-admin/edit.php2,100 ▼01.95 ▲0.0135.59 ▼4.5936.16 ▼2.80
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▲0.23741.69 ▲101.5364.42 ▲5.56
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0597.12 ▼6.2845.52 ▼1.05

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
2 plugin tags: permalink, woocommerce

product-id-permalink-for-woocommerce/product-id-permalink-for-woocommerce.php 92% from 13 tests

The principal PHP file in "Product ID Permalink for WooCommerce" v. 0.9.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 3.8")

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
There were no executable files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181648

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods562.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin