84% appmax-woocommerce

Code Review | Appmax WooCommerce

WordPress plugin Appmax WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: appmax-woocommerce
  • Plugin version: 2.0.46
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2019
  • Latest release: Apr 27, 2022
  • Number of updates: 122
  • Update frequency: every 8.3 days
  • Top authors: appmaxplataforma (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.64ms] Passed 4 tests

A check of server-side resources used by Appmax WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.53 ▼6.74
Dashboard /wp-admin3.34 ▼0.0046.45 ▼13.92
Posts /wp-admin/edit.php3.39 ▲0.0451.30 ▲4.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.23 ▼17.02
Media Library /wp-admin/upload.php3.27 ▲0.0434.47 ▼0.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Appmax WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.20 ▼1.171.60 ▼0.1339.88 ▼4.73
Dashboard /wp-admin2,218 ▲305.84 ▲0.97103.77 ▼1.3139.72 ▼0.20
Posts /wp-admin/edit.php2,103 ▲141.99 ▼0.1741.93 ▲5.1036.38 ▲1.91
Add New Post /wp-admin/post-new.php1,552 ▲2423.21 ▲4.96672.94 ▲23.2955.32 ▼3.38
Media Library /wp-admin/upload.php1,400 ▲154.30 ▲0.0996.01 ▼4.8440.55 ▼3.91

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/appmax-woocommerce/templates/views/checkout/pix/pix-payment.php:2
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/appmax-woocommerce/templates/views/checkout/pix/pix-payment.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, appmax, payment

appmax-woocommerce/appmax-woocommerce.php Passed 13 tests

"Appmax WooCommerce" version 2.0.46's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
Gateway de pagamento AppMax para WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin11,884 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP347653862,835
SVG1002,671
CSS511182,413
Sass1434341,768
LESS1434441,758
JavaScript118511439

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.71
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods160
▷ Static methods6037.50%
▷ Public methods11571.88%
▷ Protected methods00.00%
▷ Private methods4528.12%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants65
▷ Global constants11.54%
▷ Class constants6498.46%
▷ Public constants64100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/card_helper/creditcard_name.png35.17KB14.77KB▼ 58.00%
assets/images/card_helper/creditcard_number.png35.11KB14.81KB▼ 57.83%
assets/images/card_helper/creditcard_date.png35.14KB14.76KB▼ 58.00%
assets/images/card_helper/cvv.png12.13KB5.57KB▼ 54.07%