90% woo-wallee-subscription

Code Review | wallee Subscription

WordPress plugin wallee Subscription scored90%from 54 tests.

About plugin

  • Plugin page: woo-wallee-subscr...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2018
  • Latest release: Nov 9, 2022
  • Number of updates: 28
  • Update frequency: every 59.8 days
  • Top authors: customwebgmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,444 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.00MB] [CPU: ▼9.14ms] Passed 4 tests

Server-side resources used by wallee Subscription
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.32 ▼5.76
Dashboard /wp-admin3.31 ▲0.0043.74 ▼6.63
Posts /wp-admin/edit.php3.36 ▲0.0045.75 ▼4.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.99 ▼20.15
Media Library /wp-admin/upload.php3.23 ▲0.0034.68 ▲0.81

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for wallee Subscription
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.101.79 ▼0.0838.51 ▼4.12
Dashboard /wp-admin2,209 ▲244.85 ▼0.03105.70 ▼0.4240.13 ▼1.87
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0039.82 ▼4.0035.64 ▲0.19
Add New Post /wp-admin/post-new.php1,533 ▲1423.05 ▼0.05643.15 ▼13.6850.94 ▼11.58
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0699.79 ▲3.1344.11 ▲1.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: webshop, subscription, wallee, processing, woocommerce...

woo-wallee-subscription/woocommerce-wallee-subscription.php 92% from 13 tests

The main file in "wallee Subscription" v. 1.1.2 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-wallee-subscription.php" instead of "woocommerce-wallee-subscription.php")

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
No dangerous file extensions were detected1,073 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP101576071,001
PO File1191972

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.12
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods64
▷ Static methods1117.19%
▷ Public methods4875.00%
▷ Protected methods914.06%
▷ Private methods710.94%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants990.00%
▷ Class constants110.00%
▷ Public constants1100.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