84% woo-sendy-subscriptions

Code Review | Woo Sendy Subscriptions

WordPress plugin Woo Sendy Subscriptions scored84%from 54 tests.

About plugin

  • Plugin page: woo-sendy-subscri...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2016
  • Latest release: Feb 18, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ishanverma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Woo Sendy Subscriptions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.26 ▼3.69
Dashboard /wp-admin3.31 ▼0.0355.72 ▼3.72
Posts /wp-admin/edit.php3.36 ▲0.0150.70 ▲0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.13 ▼5.86
Media Library /wp-admin/upload.php3.23 ▲0.0133.95 ▲0.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Sendy Subscriptions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.091.49 ▼0.3538.99 ▼5.02
Dashboard /wp-admin2,209 ▲214.84 ▼1.0698.68 ▼8.2138.86 ▼5.57
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0439.03 ▼0.6333.73 ▼2.54
Add New Post /wp-admin/post-new.php1,542 ▲2218.65 ▼4.29620.91 ▼25.6447.40 ▼3.45
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0595.95 ▲0.1442.46 ▲0.34

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 were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/woo-sendy-subscriptions/includes/class-idt-woo-sendy-subscription.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: woocommerce, sendy, sendy mailer, woocommerce mailer, sendy subscriptions

woo-sendy-subscriptions/woo-sendy-subscriptions.php Passed 13 tests

The main PHP file in "Woo Sendy Subscriptions" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
Add buyers to sendy mailer list

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 plugin91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2335891

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin