90% external-products-currency-for-woocommerce

Code Review | Advanced External Products for WooCommerce

WordPress plugin Advanced External Products for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: external-products...
  • Plugin version: 2.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2017
  • Latest release: Sep 23, 2023
  • Number of updates: 16
  • Update frequency: every 139.1 days
  • Top authors: algoritmika (56.25%)wpcodefactory (50%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,391 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.58ms] Passed 4 tests

Server-side resources used by Advanced External Products for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.66 ▼5.62
Dashboard /wp-admin3.32 ▲0.0246.16 ▼1.75
Posts /wp-admin/edit.php3.37 ▲0.0250.05 ▼0.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.11 ▼6.77
Media Library /wp-admin/upload.php3.24 ▲0.0234.58 ▲2.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Advanced External Products for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.31 ▼1.282.02 ▲0.0841.47 ▼6.44
Dashboard /wp-admin2,209 ▲215.89 ▲1.0298.27 ▼9.8140.00 ▼6.36
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0139.77 ▼1.0535.23 ▼0.14
Add New Post /wp-admin/post-new.php1,514 ▼2217.68 ▼5.46653.21 ▲23.8262.74 ▲6.80
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0496.22 ▼3.9540.62 ▼2.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: external products, external product, woocommerce, woo commerce

external-products-currency-for-woocommerce/external-products-currency-for-woocommerce.php Passed 13 tests

The principal PHP file in "Advanced External Products for WooCommerce" v. 2.4.4 is loaded by WordPress automatically on each request
66 characters long description:
Adds more control over external/affiliate products in WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected676 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP12158471676

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods44
▷ Static methods12.27%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected