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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.36 ▼1.01 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.77 ▼9.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.19 ▼6.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.62 ▼12.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.20 | 1.78 ▲0.23 | 36.05 ▼3.79 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.09 | 95.72 ▲11.52 | 42.50 ▼0.08 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.03 | 35.01 ▼0.64 | 34.99 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.11 ▲0.08 | 684.48 ▲23.40 | 57.95 ▲6.08 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▲0.02 | 95.70 ▼5.77 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 287 | 220 | 1,006 |
CSS | 1 | 56 | 13 | 548 |
JavaScript | 1 | 22 | 8 | 77 |
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 code | 0.22 |
Average class complexity | 4.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 40 | |
▷ Static methods | 6 | 15.00% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/img/storepro-logo.png | 1.62KB | 1.86KB | 0.00% |
templates/img/test-email.png | 67.70KB | 25.35KB | ▼ 62.56% |
templates/img/faq.png | 99.10KB | 37.21KB | ▼ 62.45% |