Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼2.04ms] Passed 4 tests
This is a short check of server-side resources used by STARTEND Subscription Add-On for GravityForms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 41.07 ▼2.46 |
Dashboard /wp-admin | 3.89 ▲0.59 | 56.16 ▲4.89 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 50.04 ▼1.30 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 91.52 ▼9.27 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 46.04 ▲11.02 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 3.98 | 41.50 |
STARTEND Subscription Add-On for GravityForms /wp-admin/admin.php?page=gravitystripe-start-date-addon | 3.88 | 43.72 |
Server storage [IO: ▲3.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
fs_active_plugins |
fs_accounts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
STARTEND Subscription Add-On for GravityForms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.14 ▼0.21 | 1.80 ▲0.09 | 32.34 ▼12.91 |
Dashboard /wp-admin | 2,209 ▲32 | 5.56 ▼0.04 | 92.38 ▼0.42 | 46.39 ▲2.66 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.99 ▼0.05 | 34.01 ▼3.83 | 35.29 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.40 ▲0.37 | 670.90 ▼40.23 | 57.08 ▼10.59 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.11 ▼0.04 | 111.19 ▲13.22 | 50.18 ▲8.29 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,069 | 1.66 | 27.04 | 29.60 |
STARTEND Subscription Add-On for GravityForms /wp-admin/admin.php?page=gravitystripe-start-date-addon | 976 | 1.65 | 26.33 | 57.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/startend-subscription-add-on-for-gravityforms/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- can_compress_scripts
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/startend-subscription-add-on-for-gravityforms/includes/script.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/startend-subscription-add-on-for-gravityforms/gravitystripe-start-date-addon.php:11
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/startend-subscription-add-on-for-gravityforms/includes/class-gse-addon.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
6 plugin tags: date, gravity forms, stripe, cancel subscription, addon...
startend-subscription-add-on-for-gravityforms/gravitystripe-start-date-addon.php 92% from 13 tests
This is the main PHP file of "STARTEND Subscription Add-On for GravityForms" version 4.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("startend-subscription-add-on-for-gravityforms.php" instead of "gravitystripe-start-date-addon.php")
Code Analysis 97% from 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
There were no executable files found in this plugin37,696 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,406 | 17,675 | 35,545 |
CSS | 17 | 94 | 100 | 1,909 |
JavaScript | 4 | 54 | 61 | 242 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 95.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,339 | |
▷ Static methods | 198 | 14.79% |
▷ Public methods | 943 | 70.43% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 379 | 28.30% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
css/images/calendar.png | 0.25KB | 0.28KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |