84% recurpay

Code Review | Recurpay Subscription

WordPress plugin Recurpay Subscription scored84%from 54 tests.

About plugin

  • Plugin page: recurpay
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2022
  • Latest release: Oct 13, 2022
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: recurpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.08ms] Passed 4 tests

Server-side resources used by Recurpay Subscription
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1137.70 ▼0.89
Dashboard /wp-admin3.43 ▲0.1251.16 ▲4.14
Posts /wp-admin/edit.php3.55 ▲0.1946.94 ▼3.02
Add New Post /wp-admin/post-new.php6.03 ▲0.1486.95 ▼10.66
Media Library /wp-admin/upload.php3.36 ▲0.1236.40 ▲2.24

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Recurpay Subscription
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.45 ▼0.141.54 ▼0.1641.66 ▼4.12
Dashboard /wp-admin2,253 ▲627.90 ▲3.02207.07 ▲106.1152.31 ▲7.49
Posts /wp-admin/edit.php2,136 ▲475.42 ▲3.39147.52 ▲107.2634.78 ▲1.12
Add New Post /wp-admin/post-new.php1,548 ▲3418.19 ▲0.75607.51 ▼38.3968.75 ▲17.27
Media Library /wp-admin/upload.php1,435 ▲476.86 ▲2.56146.61 ▲49.3943.28 ▲1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/recurpay/admin/partials/recurpay-admin-display.php
    • > /wp-content/plugins/recurpay/public/partials/recurpay-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: subscription, mollie, stripe, payu, recurring...

recurpay/recurpay.php Passed 13 tests

The principal PHP file in "Recurpay Subscription" v. 2.1.1 is loaded by WordPress automatically on each request
51 characters long description:
Subscriptions for Woocommerce. Powered by Recurpay.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,550 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12213572808
CSS23710708
JavaScript242723
SVG10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.43
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods3981.25%
▷ Protected methods00.00%
▷ Private methods918.75%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin