90% avantlink-integration-for-woocommerce

Code Review | AvantLink Merchant Integration For WooCommerce

WordPress plugin AvantLink Merchant Integration For WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: avantlink-integra...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 21, 2019
  • Latest release: Aug 23, 2023
  • Number of updates: 17
  • Update frequency: every 80.7 days
  • Top authors: avantlink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 9,326 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.03MB] [CPU: ▼5.16ms] Passed 4 tests

A check of server-side resources used by AvantLink Merchant Integration For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.36 ▲0.99
Dashboard /wp-admin3.34 ▲0.0444.26 ▼3.54
Posts /wp-admin/edit.php3.39 ▲0.0347.73 ▲2.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.73 ▼16.41
Media Library /wp-admin/upload.php3.26 ▲0.0334.63 ▼1.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
avantlinkwoo_settings
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for AvantLink Merchant Integration For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.20 ▼1.272.35 ▲0.6543.01 ▲1.11
Dashboard /wp-admin2,242 ▲545.84 ▼0.06101.95 ▼2.9469.14 ▲24.48
Posts /wp-admin/edit.php2,122 ▲362.00 ▼0.0038.84 ▲2.2136.05 ▲3.33
Add New Post /wp-admin/post-new.php1,541 ▲817.47 ▼5.81743.47 ▲66.4556.70 ▲7.84
Media Library /wp-admin/upload.php1,421 ▲364.16 ▼0.0694.20 ▼17.7966.99 ▲17.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • avantlinkwoo_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

avantlink-integration-for-woocommerce/avantlink-integration-for-woocommerce.php Passed 13 tests

"AvantLink Merchant Integration For WooCommerce" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
This allows WooCommerce users to easily integrate AvantLink into their site.

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
Everything looks great! No dangerous files found in this plugin215 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13330142
SVG20152
JavaScript27018
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png16.38KB3.09KB▼ 81.12%
assets/icon-256x256.png21.84KB5.42KB▼ 75.18%