Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼2.03ms] Passed 4 tests
An overview of server-side resources used by Elementor Stripe Payment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 37.55 ▼4.78 |
Dashboard /wp-admin | 3.89 ▲0.59 | 48.54 ▼3.90 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 54.96 ▲9.78 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 89.34 ▼7.03 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 42.39 ▲7.58 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.01 | 38.40 |
Server storage [IO: ▲5.13MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 657 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_debug_mode |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
fs_accounts |
fs_active_plugins |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Elementor Stripe Payment
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲78 | 14.33 ▼0.09 | 1.65 ▼0.10 | 30.05 ▼11.09 |
Dashboard /wp-admin | 2,245 ▲68 | 5.63 ▼0.01 | 96.38 ▲1.78 | 44.41 ▲6.20 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.16 ▲0.21 | 41.68 ▲3.08 | 40.51 ▲4.57 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.08 ▼0.04 | 694.55 ▲11.42 | 65.05 ▲7.64 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.18 ▼0.04 | 102.34 ▼10.64 | 48.23 ▼0.27 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,101 | 1.65 | 25.57 | 28.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/pay-addons-for-elementor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- fs_debug_mode
- widget_recent-posts
- can_compress_scripts
- fs_accounts
- widget_recent-comments
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/update_certs.php
- 327× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(EPA_ADDONS_PATH/includes/admin/templates/settings.php): failed to open stream: No such file or directory in wp-content/plugins/pay-addons-for-elementor/includes/admin/templates/index.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/FinancialConnections/Account.php:29
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/build.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php:7
- > PHP Warning
Use of undefined constant EPA_ADDONS_PATH - assumed 'EPA_ADDONS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-addons-for-elementor/includes/admin/templates/index.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/Issuing/Card.php:35
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/pay-addons-for-elementor/vendor/stripe/stripe-php/lib/Refund.php:39
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: google pay, elementor, stripe, payment, credit card...
pay-addons-for-elementor/elementor-pay-addons.php 85% from 13 tests
The entry point to "Elementor Stripe Payment" version 1.6.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pay-addons-for-elementor.php" instead of "elementor-pay-addons.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 213 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
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/pay-addons-for-elementor/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 546 | 12,475 | 34,453 | 55,072 |
Markdown | 10 | 1,111 | 0 | 2,900 |
CSS | 17 | 122 | 114 | 1,244 |
JSON | 6 | 0 | 0 | 677 |
JavaScript | 7 | 48 | 83 | 358 |
HTML | 5 | 27 | 9 | 255 |
XML | 2 | 1 | 0 | 53 |
SVG | 1 | 0 | 0 | 34 |
make | 1 | 10 | 0 | 29 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 14.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 65 | |
Interfaces | 19 | |
Traits | 10 | |
Classes | 428 | |
▷ Abstract classes | 22 | 5.14% |
▷ Concrete classes | 406 | 94.86% |
▷ Final classes | 3 | 0.74% |
Methods | 3,034 | |
▷ Static methods | 539 | 17.77% |
▷ Public methods | 2,433 | 80.19% |
▷ Protected methods | 85 | 2.80% |
▷ Private methods | 516 | 17.01% |
Functions | 150 | |
▷ Named functions | 116 | 77.33% |
▷ Anonymous functions | 34 | 22.67% |
Constants | 1,235 | |
▷ Global constants | 115 | 9.31% |
▷ Class constants | 1,120 | 90.69% |
▷ Public constants | 1,107 | 98.84% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |