90% woo-atom-payment-gateway

Code Review | Atom Payment for WooCommerce

WordPress plugin Atom Payment for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-atom-payment-...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Nov 7, 2017
  • Number of updates: 11
  • Update frequency: every 40.5 days
  • Top authors: vikaskapadiya (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.14ms] Passed 4 tests

A check of server-side resources used by Atom Payment for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.28 ▼4.62
Dashboard /wp-admin3.36 ▲0.0545.95 ▼3.56
Posts /wp-admin/edit.php3.41 ▲0.0545.77 ▲4.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.64 ▼18.47
Media Library /wp-admin/upload.php3.28 ▲0.0535.38 ▲2.09

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Atom Payment for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.59 ▼0.701.65 ▼0.3439.85 ▼3.71
Dashboard /wp-admin2,209 ▲205.88 ▲1.0098.48 ▼22.1538.85 ▼8.81
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0640.02 ▼0.4035.65 ▼1.26
Add New Post /wp-admin/post-new.php1,533 ▼123.22 ▲0.14642.01 ▼20.9252.47 ▼5.70
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.04104.52 ▲4.0645.96 ▲4.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: the woocommerce plugin woocommerce allows use atom payment, gateway for woocommerce, pay with credit card debit card internet banking, payment gateway with secure online payment gateway, atom...

woo-atom-payment-gateway/class-wc-gateway-atom.php 92% from 13 tests

The entry point to "Atom Payment for WooCommerce" version 2.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-atom-payment-gateway.php" instead of "class-wc-gateway-atom.php")

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 plugin235 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14122235

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png3.58KB1.22KB▼ 65.81%