90% payaabb-for-woocommerce

Code Review | PayAABB Crypto Gateway for WooCommerce

WordPress plugin PayAABB Crypto Gateway for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: payaabb-for-wooco...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2022
  • Latest release: Dec 7, 2022
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: payaabb (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10+ active /989 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by PayAABB Crypto Gateway for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.10 ▼1.41
Dashboard /wp-admin3.32 ▲0.0245.03 ▼2.44
Posts /wp-admin/edit.php3.37 ▲0.0242.28 ▼2.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.54 ▼13.23
Media Library /wp-admin/upload.php3.25 ▲0.0234.15 ▲0.19

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for PayAABB Crypto Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7114.25 ▼0.102.81 ▲1.0138.42 ▼7.02
Dashboard /wp-admin2,199 ▲195.55 ▼0.1282.69 ▼8.7336.38 ▼6.97
Posts /wp-admin/edit.php2,110 ▲72.00 ▲0.0540.74 ▼4.9537.96 ▲3.26
Add New Post /wp-admin/post-new.php1,535 ▼122.91 ▼0.36595.76 ▼29.1092.87 ▲2.80
Media Library /wp-admin/upload.php1,410 ▲74.19 ▼0.0496.97 ▼9.8544.99 ▲2.60

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
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

payaabb-for-woocommerce/payaabb-for-woocommerce.php Passed 13 tests

The main PHP file in "PayAABB Crypto Gateway for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
97 characters long description:
PayAABB is the best crypto gateway, which allows users to checkout with popular cryptocurrencies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected569 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP68878568
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity19.00
▷ Minimum class complexity8.00
▷ Maximum class complexity33.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin