Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/easy-stripe/includes/settings/settings_api.php+149
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.71MB] [CPU: ▼21.05ms] Passed 4 tests
Analyzing server-side resources used by Easy Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.38 | 46.98 ▲5.63 |
Dashboard /wp-admin | 4.67 ▲1.37 | 37.47 ▼11.55 |
Posts /wp-admin/edit.php | 4.67 ▲1.31 | 48.83 ▼8.07 |
Add New Post /wp-admin/post-new.php | 4.67 ▼1.22 | 36.16 ▼61.80 |
Media Library /wp-admin/upload.php | 4.67 ▲1.44 | 37.73 ▼2.78 |
Reports /wp-admin/admin.php?page=easystripe_reports | 4.67 | 35.28 |
Orders /wp-admin/edit.php?post_type=easystripe_order | 4.67 | 36.41 |
Settings /wp-admin/admin.php?page=easystripe_settings_page | 4.67 | 37.81 |
Buttons /wp-admin/edit.php?post_type=easystripe_button | 4.67 | 36.12 |
Pro Version /wp-admin/admin.php?page=easystripe_pro | 4.67 | 35.81 |
Server storage [IO: ▲0.97MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 185 new files
Database: no new tables, 10 new options
New WordPress options |
---|
easystripe_pages |
can_compress_scripts |
easystripe_settings |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
easystripe_counter |
widget_theysaidso_widget |
easystripe_firstrun |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Stripe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,118 ▲357 | 14.33 ▼0.03 | 9.39 ▲7.08 | 37.27 ▼12.04 |
Dashboard /wp-admin | 2,407 ▲242 | 5.48 ▼0.21 | 92.56 ▼53.33 | 86.68 ▲19.41 |
Posts /wp-admin/edit.php | 2,313 ▲213 | 2.42 ▲0.44 | 57.13 ▲14.47 | 76.17 ▲38.32 |
Add New Post /wp-admin/post-new.php | 1,806 ▲279 | 23.38 ▲0.49 | 646.12 ▼45.61 | 44.10 ▼13.34 |
Media Library /wp-admin/upload.php | 1,608 ▲211 | 4.98 ▲0.70 | 108.18 ▲3.72 | 65.17 ▲21.81 |
Reports /wp-admin/admin.php?page=easystripe_reports | 1,053 | 2.47 | 35.10 | 36.48 |
Orders /wp-admin/edit.php?post_type=easystripe_order | 1,280 | 2.47 | 43.31 | 61.76 |
Settings /wp-admin/admin.php?page=easystripe_settings_page | 3,196 | 8.83 | 176.03 | 96.96 |
Buttons /wp-admin/edit.php?post_type=easystripe_button | 1,271 | 2.36 | 39.94 | 65.48 |
Pro Version /wp-admin/admin.php?page=easystripe_pro | 646 | 4.34 | 93.40 | 81.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/easy-stripe/includes/functions.php+28
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 9 options in the database
- easystripe_pages
- theysaidso_admin_options
- widget_recent-comments
- easystripe_settings
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- easystripe_counter
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=easystripe_pro
- > Deprecated in wp-content/plugins/easy-stripe/includes/functions.php+28
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-stripe/includes/stripe_library/build.php
- > /wp-content/plugins/easy-stripe/includes/stripe_library/examples/oauth.php
- 116× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/easy-stripe/includes/stripe_library/tests/ExchangeRateTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/easy-stripe/includes/stripe_library/tests/AttachedObjectTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/easy-stripe/includes/stripe_library/lib/Error/Api.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easy-stripe/includes/stripe_library/lib/OrderReturn.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/easy-stripe/includes/stripe_library/tests/StripeObjectTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easy-stripe/includes/stripe_library/lib/Token.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/easy-stripe/includes/stripe_library/tests/ApiRequestorTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/easy-stripe/includes/stripe_library/tests/DiscountTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easy-stripe/includes/stripe_library/lib/Collection.php:15
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/easy-stripe/includes/stripe_library/lib/Error/ApiConnection.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=easystripe_button
- > Network (severe)
wp-content/plugins/easy-stripe/assets/css/jquery-ui-datepicker-only-custom-min.css?ver=1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=easystripe_pro
- > Network (severe)
https://wpplugin.org/downloads/easy-stripe-pro?edd-flush=1 - Failed to load resource: the server responded with a status of 404 ()
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
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in easy-stripe/assets to your readme.txt
easy-stripe/easy-stripe.php 85% from 13 tests
The principal PHP file in "Easy Stripe" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/easy-stripe/includes/stripe_library/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 160 | 2,500 | 2,899 | 10,994 |
JavaScript | 9 | 290 | 75 | 476 |
Markdown | 2 | 174 | 0 | 380 |
CSS | 2 | 82 | 8 | 296 |
YAML | 2 | 3 | 0 | 43 |
JSON | 1 | 0 | 0 | 36 |
XML | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 8 | 6.50% |
▷ Concrete classes | 115 | 93.50% |
▷ Final classes | 0 | 0.00% |
Methods | 574 | |
▷ Static methods | 202 | 35.19% |
▷ Public methods | 514 | 89.55% |
▷ Protected methods | 34 | 5.92% |
▷ Private methods | 26 | 4.53% |
Functions | 107 | |
▷ Named functions | 102 | 95.33% |
▷ Anonymous functions | 5 | 4.67% |
Constants | 28 | |
▷ Global constants | 10 | 35.71% |
▷ Class constants | 18 | 64.29% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/stripe_library/data/test.png | 0.09KB | 0.09KB | 0.00% |