84% wc-qvapay

Code Review | QvaPay for WooCommerce

WordPress plugin QvaPay for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-qvapay
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Mar 30, 2021
  • Number of updates: 9
  • Update frequency: every 7.1 days
  • Top authors: rafrsr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by QvaPay for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.44 ▼2.77
Dashboard /wp-admin3.32 ▲0.0253.29 ▼3.30
Posts /wp-admin/edit.php3.37 ▲0.0154.85 ▲3.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.54 ▼12.88
Media Library /wp-admin/upload.php3.24 ▲0.0140.21 ▼1.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by QvaPay for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲2614.67 ▲0.511.77 ▼0.1244.06 ▲0.19
Dashboard /wp-admin2,221 ▲445.66 ▲0.0885.71 ▼19.0143.32 ▼1.24
Posts /wp-admin/edit.php2,123 ▲231.99 ▼0.0543.68 ▲6.0040.58 ▲2.41
Add New Post /wp-admin/post-new.php1,544 ▲1623.31 ▲0.14705.43 ▲10.3051.87 ▼26.41
Media Library /wp-admin/upload.php1,426 ▲264.19 ▲0.06104.56 ▼10.7147.39 ▲2.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/wc-qvapay/WC_Gateway_QvaPay.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === QvaPay for WooCommerce === )
The official readme.txt might help

wc-qvapay/wc-qvapay.php 92% from 13 tests

The entry point to "QvaPay for WooCommerce" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin319 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP360102270
PO File118049

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods675.00%
▷ Protected methods225.00%
▷ Private methods00.00%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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