83% usetada

Code Review | TADA (Membership, Loyalty, Referral & Subscription Platform)

WordPress plugin TADA (Membership, Loyalty, Referral & Subscription Platform) scored83%from 54 tests.

About plugin

  • Plugin page: usetada
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 14, 2020
  • Latest release: May 10, 2021
  • Number of updates: 31
  • Update frequency: every 13.6 days
  • Top authors: usetada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /947 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.11MB] [CPU: ▼3.91ms] Passed 4 tests

This is a short check of server-side resources used by TADA (Membership, Loyalty, Referral & Subscription Platform)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0940.13 ▲0.87
Dashboard /wp-admin3.42 ▲0.1247.75 ▲0.12
Posts /wp-admin/edit.php3.53 ▲0.1745.53 ▼2.14
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.29 ▼14.47
Media Library /wp-admin/upload.php3.34 ▲0.1135.23 ▲5.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TADA (Membership, Loyalty, Referral & Subscription Platform)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.63 ▲0.251.67 ▼0.1442.44 ▼0.14
Dashboard /wp-admin2,241 ▲524.88 ▼1.01103.51 ▼11.4642.87 ▼6.19
Posts /wp-admin/edit.php2,121 ▲322.06 ▲0.0237.20 ▼0.8336.03 ▲1.78
Add New Post /wp-admin/post-new.php1,526 ▲617.90 ▼5.13691.23 ▲12.0958.81 ▲3.92
Media Library /wp-admin/upload.php1,422 ▲344.19 ▲0.0194.89 ▼17.5944.64 ▼1.87

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 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
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/usetada/includes/class.usetada-widget.php
    • > /wp-content/plugins/usetada/includes/class.usetada-admin.php
    • > /wp-content/plugins/usetada/includes/class.usetada-api.php
    • > /wp-content/plugins/usetada/includes/class.usetada-settings.php
    • > /wp-content/plugins/usetada/usetada.php
    • > /wp-content/plugins/usetada/includes/class.usetada.php
    • > /wp-content/plugins/usetada/includes/class.usetada-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

usetada/usetada.php 85% from 13 tests

"TADA (Membership, Loyalty, Referral & Subscription Platform)" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.2" instead of "4.0.0")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,424 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS214244741
PHP7144144526
JavaScript32236147
SVG10110

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.83
▷ Minimum class complexity4.00
▷ Maximum class complexity17.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods30100.00%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
14 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/close.png0.47KB0.32KB▼ 32.02%
admin/images/zoom.png0.45KB0.46KB0.00%
public/images/giftbox.png1.08KB1.10KB0.00%
admin/images/logo-tada-blue.png0.24KB0.24KB0.00%
admin/images/hide-password.png0.44KB0.45KB0.00%