Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/fastspring/fastspring.php+4337
Undefined variable: fastspring_settings_translations
Server metrics [RAM: ▲0.96MB] [CPU: ▼13.21ms] Passed 4 tests
Analyzing server-side resources used by FastSpring
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.10 ▲2.64 | 51.94 ▲11.91 |
Dashboard /wp-admin | 4.55 ▲1.25 | 57.24 ▲4.13 |
Posts /wp-admin/edit.php | 4.60 ▲1.25 | 57.19 ▲2.56 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 58.47 ▼64.39 |
Media Library /wp-admin/upload.php | 4.41 ▲1.18 | 51.93 ▲4.87 |
EDS Buy Button /wp-admin/admin.php?page=fastspring_settings_eds_button_settings | 4.38 | 38.46 |
Custom CSS /wp-admin/admin.php?page=fastspring_settings_custom_css | 4.38 | 39.27 |
About /wp-admin/admin.php?page=fastspring_settings_about | 4.38 | 41.11 |
FastSpring Settings /wp-admin/admin.php?page=fastspring_settings_menu | 4.39 | 42.22 |
Cross-Sell Button /wp-admin/admin.php?page=fastspring_settings_cross_sell_button_settings | 4.38 | 35.98 |
Checkout Button /wp-admin/admin.php?page=fastspring_settings_checkout_button_settings | 4.38 | 39.43 |
Up-Sell Button /wp-admin/admin.php?page=fastspring_settings_up_sell_button_settings | 4.38 | 37.67 |
Nav Menu /wp-admin/admin.php?page=fastspring_settings_nav_menu | 4.38 | 38.50 |
View Cart Button /wp-admin/admin.php?page=fastspring_settings_view_cart_button_settings | 4.38 | 38.65 |
Translations /wp-admin/admin.php?page=fastspring_settings_translations | 4.42 | 44.89 |
Server storage [IO: ▲4.12MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 20 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
fastspring_settings_general_settings |
db_upgraded |
fastspring_settings_checkout_button_settings |
fastspring_settings_about |
fastspring_settings_buy_button_settings |
wisdom_notification_times |
widget_theysaidso_widget |
fastspring_settings_shopping_cart_settings |
... |
Browser metrics Passed 4 tests
FastSpring: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,295 ▲534 | 15.20 ▲0.92 | 40.53 ▲38.60 | 46.56 ▼0.11 |
Dashboard /wp-admin | 2,338 ▲161 | 5.80 ▲0.17 | 90.23 ▼10.97 | 42.07 ▼0.96 |
Posts /wp-admin/edit.php | 2,250 ▲153 | 2.42 ▲0.45 | 38.52 ▲2.32 | 35.16 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6,531 ▲5,005 | 30.09 ▲6.83 | 987.95 ▲369.89 | 38.65 ▼24.73 |
Media Library /wp-admin/upload.php | 1,621 ▲221 | 4.42 ▲0.23 | 106.48 ▲0.39 | 45.09 ▼1.10 |
EDS Buy Button /wp-admin/admin.php?page=fastspring_settings_eds_button_settings | 1,094 | 2.22 | 30.51 | 38.96 |
Custom CSS /wp-admin/admin.php?page=fastspring_settings_custom_css | 1,015 | 2.08 | 29.14 | 34.41 |
About /wp-admin/admin.php?page=fastspring_settings_about | 1,017 | 2.06 | 28.30 | 28.55 |
FastSpring Settings /wp-admin/admin.php?page=fastspring_settings_menu | 1,129 | 2.22 | 29.75 | 47.62 |
Cross-Sell Button /wp-admin/admin.php?page=fastspring_settings_cross_sell_button_settings | 1,097 | 2.21 | 30.86 | 31.33 |
Checkout Button /wp-admin/admin.php?page=fastspring_settings_checkout_button_settings | 1,109 | 2.22 | 29.05 | 34.19 |
Up-Sell Button /wp-admin/admin.php?page=fastspring_settings_up_sell_button_settings | 1,094 | 2.20 | 30.26 | 36.12 |
Nav Menu /wp-admin/admin.php?page=fastspring_settings_nav_menu | 1,022 | 2.00 | 30.39 | 27.91 |
View Cart Button /wp-admin/admin.php?page=fastspring_settings_view_cart_button_settings | 1,129 | 2.21 | 28.16 | 33.58 |
Translations /wp-admin/admin.php?page=fastspring_settings_translations | 5,577 | 2.18 | 41.16 | 203.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 20 options in the database
- fastspring_settings_view_cart_button_settings
- fastspring_settings_remove_from_cart_button_settings
- fastspring_settings_custom_css
- fastspring_settings_about
- fastspring_settings_up_sell_button_settings
- fastspring_settings_checkout_button_settings
- fastspring_settings_eds_button_settings
- wisdom_notification_times
- can_compress_scripts
- fastspring_settings_shopping_cart_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fastspring/includes/fastspringmodal.php
- 2044× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 158
- > PHP Notice
Undefined index: translationDefaults in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 500
- > PHP Notice
Undefined index: translationDefaults in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 538
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 302
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 396
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 417
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 501
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 130
- > PHP Notice
Undefined variable: fastspring_options in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 170
- > PHP Notice
Undefined variable: fastspring_options in wp-content/plugins/fastspring/includes/fastspringmodal.php on line 287
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
- Requires at least: Version format is invalid
fastspring/fastspring.php Passed 13 tests
The main file in "FastSpring" v. 3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
The FastSpring WordPress Plugin is a tool that lets you integrate your FastSpring Store with your WordPress website.
Code Analysis Passed 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
No dangerous file extensions were detected18,646 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,299 |
PHP | 9 | 174 | 31 | 6,430 |
JavaScript | 4 | 123 | 4 | 2,915 |
CSS | 2 | 0 | 4 | 2 |
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.34 |
Average class complexity | 22.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 84 | |
▷ Named functions | 72 | 85.71% |
▷ Anonymous functions | 12 | 14.29% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.36MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 254.54KB | 149.08KB | ▼ 41.43% |
assets/icon-128x128.png | 7.09KB | 3.34KB | ▼ 52.95% |
assets/icon-256x256.png | 13.99KB | 6.46KB | ▼ 53.79% |
assets/banner-772x250.png | 96.81KB | 55.14KB | ▼ 43.04% |