Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/subscription-plans/chargely-subscription.php+354
Undefined index: siteorigin_chargely_plugin_nonce
Server metrics [RAM: ▼0.74MB] [CPU: ▼22.55ms] Passed 4 tests
Analyzing server-side resources used by Subscription Plans
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 50.80 ▲6.62 |
Dashboard /wp-admin | 3.13 ▼0.17 | 36.97 ▼15.83 |
Posts /wp-admin/edit.php | 3.25 ▼0.10 | 38.69 ▼13.08 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 42.18 ▼60.74 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 37.13 ▼0.53 |
Chargely Subscriptions /wp-admin/admin.php?page=chargely_wordpress_login | 3.12 | 32.92 |
Transactions /wp-admin/admin.php?page=chargely_wordpress_transactions | 3.12 | 35.78 |
Subscribers /wp-admin/admin.php?page=chargely_wordpress_subscription | 3.12 | 33.24 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
cps_plan_pricing |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Subscription Plans
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲237 | 13.78 ▼0.57 | 10.75 ▲9.04 | 43.15 ▼3.14 |
Dashboard /wp-admin | 2,324 ▲147 | 5.56 ▼0.10 | 92.50 ▼18.91 | 44.12 ▼7.92 |
Posts /wp-admin/edit.php | 2,227 ▲127 | 2.01 ▲0.01 | 36.35 ▼2.09 | 35.36 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,550 ▲15 | 23.13 ▲4.89 | 669.07 ▲43.22 | 56.68 ▼9.10 |
Media Library /wp-admin/upload.php | 1,530 ▲130 | 4.27 ▲0.06 | 116.28 ▲9.52 | 47.50 ▲3.26 |
Chargely Subscriptions /wp-admin/admin.php?page=chargely_wordpress_login | 1,203 | 3.33 | 65.66 | 82.53 |
Transactions /wp-admin/admin.php?page=chargely_wordpress_transactions | 986 | 2.21 | 28.77 | 33.36 |
Subscribers /wp-admin/admin.php?page=chargely_wordpress_subscription | 1,094 | 2.21 | 29.90 | 48.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/subscription-plans/chargely-subscription.php+354
Undefined index: siteorigin_chargely_plugin_nonce
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- cps_plan_pricing
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_subscription
- > Notice in wp-content/plugins/subscription-plans/chargely-subscription.php+271
Undefined index: post_type
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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/subscription-plans/views/admin/login.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/subscription-plans/views/admin/login.php:239
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_subscription
- > Network (severe)
var/www/wordpress/wp-content/plugins/subscription-plans//css/mystyle.css?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_transactions
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=chargely_wordpress_transactions#error_popup_login - Access to fetch at 'https://chargely.com/api/merchant/pagination?page_num=1&client=Consumer%20Subscription&merchant_id=null' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_subscription
- > Network (severe)
https://chargely.com/api/merchant/pagination?page_num=1&client=Consumer%20Subscription&merchant_id=null - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_transactions
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=chargely_wordpress_transactions 303:4 Uncaught TypeError: Failed to fetch
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_subscription
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=chargely_wordpress_subscription#error_popup_login - Access to fetch at 'https://chargely.com/api/merchant/pagination?page_num=1&client=Consumer%20Subscription&merchant_id=null' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
- > GET request to /wp-admin/admin.php?page=chargely_wordpress_subscription
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=chargely_wordpress_subscription 390:4 Uncaught TypeError: Failed to fetch
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #3 (banner-772x250-rtl.png), #4 (banner-772x250.png), #5 (banner-1544X500-rtl.png), #6 (banner-1544X500.png), #7 (icon-128x128.png), #8 (icon-256X256.png)
subscription-plans/chargely-subscription.php 85% from 13 tests
This is the main PHP file of "Subscription Plans" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("subscription-plans.php" instead of "chargely-subscription.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,871 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 183 | 203 | 3,779 |
PHP | 9 | 493 | 152 | 3,431 |
JavaScript | 11 | 189 | 122 | 1,827 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
SVG | 2 | 0 | 0 | 527 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 1.25MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/admin/images/chargely_logo.png | 1.60KB | 0.86KB | ▼ 46.33% |
views/admin/images/PayPal.png | 33.59KB | 15.03KB | ▼ 55.25% |
views/admin/images/cards.png | 194.62KB | 62.59KB | ▼ 67.84% |
views/admin/images/merchant_id.png | 0.46KB | 0.33KB | ▼ 26.87% |
views/admin/images/checkout_logo.png | 8.51KB | 9.80KB | 0.00% |