78% reepay-subscriptions-for-woocommerce

Code Review | Billwerk+ Subscriptions

WordPress plugin Billwerk+ Subscriptions scored78%from 54 tests.

About plugin

  • Plugin page: reepay-subscripti...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2022
  • Latest release: Sep 9, 2023
  • Number of updates: 18
  • Update frequency: every 18.7 days
  • Top authors: reepaydenmark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,145 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.60ms] Passed 4 tests

Server-side resources used by Billwerk+ Subscriptions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.49 ▼5.50
Dashboard /wp-admin3.39 ▲0.0849.46 ▼5.53
Posts /wp-admin/edit.php3.50 ▲0.1450.29 ▼1.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.83 ▼17.68
Media Library /wp-admin/upload.php3.31 ▲0.0840.27 ▲4.99

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Billwerk+ Subscriptions: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.32 ▼0.032.12 ▲0.2836.24 ▼5.88
Dashboard /wp-admin2,195 ▲155.64 ▲0.0294.59 ▲4.5040.77 ▼0.35
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0339.12 ▲1.4138.46 ▲3.83
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▼0.03671.11 ▼19.7953.95 ▼0.66
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0696.44 ▼14.5946.02 ▼2.54

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/import/checkbox.php
    • > /wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/plan-subscription-frontend-variable.php
  • 34× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/discounts-and-coupons-fields.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Reepay_Subscription_Plan_Simple_Rest' not found in wp-content/plugins/reepay-subscriptions-for-woocommerce/includes/WC_Reepay_Subscription_Coupons_Rest.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Post' not found in wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/plan-subscription-fields-data.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product_Variable' not found in wp-content/plugins/reepay-subscriptions-for-woocommerce/includes/WC_Product_Reepay_Variable_Subscription.php:3
    • > PHP Notice
      Undefined variable: is_checkout in wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/plan-subscription-frontend.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product_Simple' not found in wp-content/plugins/reepay-subscriptions-for-woocommerce/includes/WC_Product_Reepay_Simple_Subscription.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Reepay_Subscription_Plan_Simple_Rest' not found in wp-content/plugins/reepay-subscriptions-for-woocommerce/includes/WC_Reepay_Subscription_Addons_Rest.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/import/tables/subscriptions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reepay-subscriptions-for-woocommerce/includes/memberships/WC_Reepay_Memberships_Integrations.php:288
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/reepay-subscriptions-for-woocommerce/templates/admin-list-menu.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: reepay, subscriptions, wordpress ecommerce, ecommerce, woocommerce...

reepay-subscriptions-for-woocommerce/reepay-subscriptions-for-woocommerce.php 85% from 13 tests

"Billwerk+ Subscriptions" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.5" instead of "3.0.0")
  • Description: The description should be shorter than 140 characters (currently 235 characters long)

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
No dangerous file extensions were detected47,319 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
JSON50037,360
PHP841,8511,9348,701
JavaScript721744947
CSS2740293
Markdown212018
Sass1010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity22.04
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes46
▷ Abstract classes00.00%
▷ Concrete classes46100.00%
▷ Final classes00.00%
Methods381
▷ Static methods9825.72%
▷ Public methods35693.44%
▷ Protected methods82.10%
▷ Private methods174.46%
Functions11
▷ Named functions218.18%
▷ Anonymous functions981.82%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin