89% woo-stripe-subscription

Code Review | Woo Stripe Subscription

WordPress plugin Woo Stripe Subscription scored89%from 54 tests.

About plugin

  • Plugin page: woo-stripe-subscr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-5.1.1
  • WordPress version: 6.3.1
  • First release: May 1, 2019
  • Latest release: May 4, 2019
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: ramkumarelumalai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,747 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.30ms] Passed 4 tests

A check of server-side resources used by Woo Stripe Subscription
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.18 ▲1.34
Dashboard /wp-admin3.31 ▲0.0049.49 ▼0.10
Posts /wp-admin/edit.php3.36 ▲0.0052.75 ▲3.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.53 ▼8.46
Media Library /wp-admin/upload.php3.23 ▲0.0038.08 ▼1.99

Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woo-stripe-subscription/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Woo Stripe Subscription
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲5414.48 ▲0.102.00 ▲0.1341.26 ▼4.58
Dashboard /wp-admin2,224 ▲214.85 ▼1.05108.43 ▲1.4941.05 ▼0.21
Posts /wp-admin/edit.php2,103 ▲62.13 ▲0.0744.29 ▲7.8036.28 ▼0.00
Add New Post /wp-admin/post-new.php1,545 ▲1923.03 ▲5.49648.34 ▼16.9362.58 ▲1.50
Media Library /wp-admin/upload.php1,400 ▼34.25 ▼0.0394.40 ▼8.1041.82 ▼0.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
7 plugin tags: stripe, subscription, subscriptions, woocommerce, dss...

woo-stripe-subscription/wss.php 85% from 13 tests

The main file in "Woo Stripe Subscription" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-stripe-subscription.php" instead of "wss.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,337 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP233341,5922,604
PO File2268328718
Markdown17015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity22.71
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods106
▷ Static methods1413.21%
▷ Public methods9185.85%
▷ Protected methods00.00%
▷ Private methods1514.15%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected