78% subscriptions-renewal-reminders

Code Review | Renewal Reminders

WordPress plugin Renewal Reminders scored78%from 54 tests.

About plugin

  • Plugin page: subscriptions-ren...
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2021
  • Latest release: Oct 27, 2023
  • Number of updates: 73
  • Update frequency: every 11.9 days
  • Top authors: storepro (50.68%)pranavstorepro (26.03%)suhanastorepro (23.29%)ahanastorepro (4.11%)

Code review

54 tests

User reviews

11 reviews

Install metrics

300+ active /5,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.42ms] Passed 4 tests

Analyzing server-side resources used by Renewal Reminders
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.36 ▼1.01
Dashboard /wp-admin3.31 ▼0.0448.77 ▼9.87
Posts /wp-admin/edit.php3.36 ▲0.0041.19 ▼6.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.62 ▼12.35
Media Library /wp-admin/upload.php3.23 ▲0.0032.26 ▼0.35

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Renewal Reminders
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.201.78 ▲0.2336.05 ▼3.79
Dashboard /wp-admin2,198 ▲245.62 ▲0.0995.72 ▲11.5242.50 ▼0.08
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0335.01 ▼0.6434.99 ▼1.10
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▲0.08684.48 ▲23.4057.95 ▲6.08
Media Library /wp-admin/upload.php1,397 ▼64.22 ▲0.0295.70 ▼5.7741.15 ▼2.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/subscriptions-renewal-reminders/subscriptions-renewal-reminders.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SPRRBaseController' not found in wp-content/plugins/subscriptions-renewal-reminders/inc/base/renewal-reminders-settings-links.php:7
    • > PHP Warning
      Use of undefined constant SPRR_PLUGIN_DIR - assumed 'SPRR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/subscriptions-renewal-reminders/inc/pages/renewal-reminders-admin.php on line 7
    • > PHP Warning
      require(SPRR_PLUGIN_DIRinc/api/renewal-reminders-settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/subscriptions-renewal-reminders/inc/pages/renewal-reminders-admin.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'SPRRBaseController' not found in wp-content/plugins/subscriptions-renewal-reminders/inc/base/renewal-reminders-enqueue.php:11
    • > PHP Fatal error
      require(): Failed opening required 'SPRR_PLUGIN_DIRinc/api/renewal-reminders-settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/subscriptions-renewal-reminders/inc/pages/renewal-reminders-admin.php on line 7
    • > PHP Fatal error
      require(): Failed opening required 'SPRR_PLUGIN_DIRtemplates/renewal-reminders-email.php' (include_path='.:/usr/share/php') in wp-content/plugins/subscriptions-renewal-reminders/inc/base/renewal-reminders-send-notifications.php on line 6
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/subscriptions-renewal-reminders/templates/renewal-reminders-admin.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/subscriptions-renewal-reminders/templates/renewal-reminders-admin.php:21
    • > PHP Warning
      require(SPRR_PLUGIN_DIRtemplates/renewal-reminders-email.php): failed to open stream: No such file or directory in wp-content/plugins/subscriptions-renewal-reminders/inc/base/renewal-reminders-send-notifications.php on line 6
    • > PHP Warning
      require(SPRR_PLUGIN_DIRinc/base/renewal-reminders-base-controller.php): failed to open stream: No such file or directory in wp-content/plugins/subscriptions-renewal-reminders/inc/init.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: renew subscriptions automatically, renewal alerts, reminder emails, subscriptions, renew subscriptions...

subscriptions-renewal-reminders/subscriptions-renewal-reminders.php 77% from 13 tests

The primary PHP file in "Renewal Reminders" version 1.1.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "3.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,631 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP162872201,006
CSS15613548
JavaScript122877

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.36
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods40
▷ Static methods615.00%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/img/storepro-logo.png1.62KB1.86KB0.00%
templates/img/test-email.png67.70KB25.35KB▼ 62.56%
templates/img/faq.png99.10KB37.21KB▼ 62.45%