88% step-pay

Code Review | Step pay

WordPress plugin Step pay scored88%from 54 tests.

About plugin

  • Plugin page: step-pay
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-5.8
  • WordPress version: 6.3.1
  • First release: Sep 3, 2021
  • Latest release: Dec 6, 2021
  • Number of updates: 14
  • Update frequency: every 9.4 days
  • Top authors: splittypayplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /679 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.09MB] [CPU: ▼4.06ms] Passed 4 tests

A check of server-side resources used by Step pay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.69 ▲0.37
Dashboard /wp-admin3.40 ▲0.0951.59 ▼0.04
Posts /wp-admin/edit.php3.51 ▲0.1550.59 ▲1.91
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.13 ▼18.48
Media Library /wp-admin/upload.php3.32 ▲0.0940.89 ▲4.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Step pay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.382.26 ▲0.1242.74 ▼14.49
Dashboard /wp-admin2,206 ▲185.85 ▼0.0695.49 ▼19.8537.32 ▼6.74
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0035.10 ▼7.7833.12 ▼0.23
Add New Post /wp-admin/post-new.php1,521 ▲723.24 ▲5.88610.20 ▼84.0846.60 ▼10.28
Media Library /wp-admin/upload.php1,385 ▲34.26 ▼0.0195.60 ▼6.1841.01 ▼3.28

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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 79% from 29 tests

readme.txt 88% 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 require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === step-pay === )
  • Screenshots: These screenshots require images: #1 (Auth page: the customer must create an account or log in the app.), #2 (Cards page: the customer chooses one of his cards or add a new one.), #3 (Checkout page: the customer sees a summary of the order and pays by installments.)
You can look at the official readme.txt

step-pay/class-wc-gateway-splittypay-step.php 69% from 13 tests

"Step pay" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("step-pay.php" instead of "class-wc-gateway-splittypay-step.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("4.0.1" instead of "2.2")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin454 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15580454

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods321.43%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.81MB with 0.60MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshots/screenshot 1.png237.86KB48.52KB▼ 79.60%
assets/screenshots/screenshot 3.png249.79KB51.85KB▼ 79.24%
assets/screenshots/screenshot 2.png318.20KB67.40KB▼ 78.82%
assets/images/splittypay.png20.05KB7.75KB▼ 61.36%