Benchmarks
Plugin footprint 65% 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: ▲5.20MB] [CPU: ▲24.28ms] 75% from 4 tests
Server-side resources used by GravityStripe Subscription Manager
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.20MB on /wp-admin/admin.php?page=manage-gravity-forms-stripe-subscriptions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.11 ▲5.64 | 70.28 ▲29.91 |
Dashboard /wp-admin | 9.13 ▲5.78 | 71.30 ▲13.28 |
Posts /wp-admin/edit.php | 9.13 ▲5.77 | 72.94 ▲30.64 |
Add New Post /wp-admin/post-new.php | 9.51 ▲3.62 | 117.23 ▲23.78 |
Media Library /wp-admin/upload.php | 9.13 ▲5.89 | 62.86 ▲30.13 |
Subscriptions /wp-admin/admin.php?page=zzd_stripe_subscriptions | 9.13 | 53.46 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.13 | 55.92 |
Single Transactions /wp-admin/admin.php?page=zzd_stripe_transactions | 9.13 | 57.53 |
GravityStripe Subscription Management /wp-admin/admin.php?page=manage-gravity-forms-stripe-subscriptions | 9.13 | 77.61 |
Server storage [IO: ▲5.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 227 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
fs_accounts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by GravityStripe Subscription Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲270 | 15.89 ▲1.69 | 22.20 ▲20.29 | 33.80 ▼19.74 |
Dashboard /wp-admin | 2,292 ▲112 | 6.02 ▲0.46 | 102.09 ▲1.90 | 43.69 ▲0.61 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 3.12 ▲1.12 | 53.36 ▲18.18 | 37.53 ▲5.55 |
Add New Post /wp-admin/post-new.php | 1,602 ▲65 | 23.41 ▲5.30 | 701.78 ▲74.70 | 38.09 ▼32.93 |
Media Library /wp-admin/upload.php | 1,494 ▲91 | 5.61 ▲1.42 | 111.46 ▲10.24 | 44.06 ▲0.12 |
Subscriptions /wp-admin/admin.php?page=zzd_stripe_subscriptions | 810 | 2.72 | 42.02 | 19.80 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,134 | 2.71 | 40.51 | 26.03 |
Single Transactions /wp-admin/admin.php?page=zzd_stripe_transactions | 1,443 | 9.91 | 285.57 | 78.71 |
GravityStripe Subscription Management /wp-admin/admin.php?page=manage-gravity-forms-stripe-subscriptions | 1,074 | 2.71 | 39.54 | 60.81 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/manage-gravity-forms-stripe-subscriptions/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/manage-gravity-forms-stripe-subscriptions/gravitystripe-subscriptions-manager.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_users() in wp-content/plugins/manage-gravity-forms-stripe-subscriptions/entry-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manage-gravity-forms-stripe-subscriptions/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/manage-gravity-forms-stripe-subscriptions/admin-table.php:63
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #4, #5 in manage-gravity-forms-stripe-subscriptions/assets to your readme.txt
manage-gravity-forms-stripe-subscriptions/gravitystripe-subscriptions-manager.php 85% from 13 tests
The main PHP script in "GravityStripe Subscription Manager" version 4.1.6 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 384 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("manage-gravity-forms-stripe-subscriptions.php" instead of "gravitystripe-subscriptions-manager.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin71,320 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 8,235 | 17,329 | 35,397 |
PO File | 13 | 7,047 | 8,559 | 15,453 |
JavaScript | 11 | 3,557 | 2,340 | 15,382 |
CSS | 21 | 288 | 127 | 5,088 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 93.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 150 | |
▷ Named functions | 150 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/gravity-stripe-wp-menu_logo.png | 2.35KB | 2.04KB | ▼ 13.16% |
css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
images/icon.png | 21.46KB | 7.93KB | ▼ 63.07% |
css/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |