89% zapper-payments

Code Review | Zapper Payments

WordPress plugin Zapper Payments scored89%from 54 tests.

About plugin

  • Plugin page: zapper-payments
  • Plugin version: 2.1.8
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Nov 1, 2023
  • Number of updates: 79
  • Update frequency: every 36.4 days
  • Top authors: keiranvv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /16,678 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.42ms] Passed 4 tests

A check of server-side resources used by Zapper Payments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.13 ▼7.80
Dashboard /wp-admin3.31 ▼0.0450.88 ▼16.40
Posts /wp-admin/edit.php3.36 ▲0.0046.36 ▼4.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.37 ▼4.58
Media Library /wp-admin/upload.php3.23 ▲0.0035.06 ▼4.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Zapper Payments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.17 ▼0.461.70 ▼0.3843.72 ▼2.39
Dashboard /wp-admin2,195 ▲155.52 ▼0.1486.30 ▼7.4641.91 ▲3.57
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0636.15 ▼6.9630.97 ▼6.39
Add New Post /wp-admin/post-new.php1,535 ▲918.48 ▼4.40617.65 ▼31.5667.84 ▲14.21
Media Library /wp-admin/upload.php1,403 ▲94.20 ▼0.0692.72 ▼5.3941.61 ▼0.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Zapper Payments for WooCommerce plugin configuration.), #2 (Checkout option to select Zapper as a payment method.), #3 (Desktop Payment Gateway.), #4 (Mobile Payment Gateway.)
Please take inspiration from this readme.txt

zapper-payments/zapper-payments.php 92% from 13 tests

Analyzing the main PHP file in "Zapper Payments" version 2.1.8
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "2.5")

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
Success! There were no dangerous files found in this plugin577 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45820360
JavaScript2405217

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
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/zapper.png3.36KB1.49KB▼ 55.68%