89% rapaygo-for-woocommerce

Code Review | Rapaygo For WooCommerce

WordPress plugin Rapaygo For WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: rapaygo-for-wooco...
  • Plugin version: 1.0.19
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 6, 2022
  • Latest release: Jul 15, 2022
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: claytantor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.16ms] Passed 4 tests

Server-side resources used by Rapaygo For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.89 ▼12.66
Dashboard /wp-admin3.35 ▲0.0446.28 ▼1.88
Posts /wp-admin/edit.php3.40 ▲0.0448.26 ▼4.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.13 ▲2.25
Media Library /wp-admin/upload.php3.27 ▲0.0437.29 ▲2.87

Server storage [IO: ▲0.05MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rapaygo For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.73 ▲0.361.67 ▼0.4041.21 ▼4.81
Dashboard /wp-admin2,206 ▲155.91 ▲0.03109.26 ▲2.1740.21 ▼2.60
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0638.75 ▼0.9934.50 ▼3.04
Add New Post /wp-admin/post-new.php1,542 ▼018.05 ▼0.47628.85 ▼7.4051.73 ▼5.77
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.06101.67 ▼1.9743.17 ▼2.13

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Tested plugins for WooCommerce and Rapaygo), #2 (On the WooCommerce payments screen you must enable the Rapaygo payments gateway), #3 (Rapaygo payment settings use your rapaygo POS based login to create invoices for payment.)
You can look at the official readme.txt

rapaygo-for-woocommerce/rapaygo-for-woocommerce.php 85% from 13 tests

This is the main PHP file of "Rapaygo For WooCommerce" version 1.0.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

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
There were no executable files found in this plugin631 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2170144618
JavaScript19413

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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/icon.png1.87KB1.49KB▼ 20.52%