Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼4.59ms] Passed 4 tests
An overview of server-side resources used by Stripe Gateway for Events Manager Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.36 ▼3.27 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.46 ▼17.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.85 ▲3.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.83 ▲2.54 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.41 ▲0.18 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Stripe Gateway for Events Manager Pro
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.54 ▼1.20 | 1.90 ▲0.15 | 42.68 ▼0.34 |
Dashboard /wp-admin | 2,217 ▲26 | 4.88 ▼0.17 | 109.01 ▲0.33 | 41.71 ▲3.00 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▲0.01 | 40.16 ▲3.59 | 38.43 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,541 ▲5 | 23.29 ▲0.11 | 594.43 ▲14.51 | 51.95 ▼4.46 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.25 ▲0.03 | 96.91 ▼3.91 | 42.80 ▼4.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Transfer.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Error/Card.php:5
- > PHP Fatal error
Uncaught Error: Class 'EM_Gateway' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/gateway.stripe.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Error' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/ApiConnectionError.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Customer.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Error' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/AuthenticationError.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Error/InvalidRequest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Coupon.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Invoice.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/stripe-gateway-for-events-manager-pro/lib/Stripe/Token.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 26 tag instead of maximum 10
stripe-gateway-for-events-manager-pro/main.php 92% from 13 tests
The principal PHP file in "Stripe Gateway for Events Manager Pro" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("stripe-gateway-for-events-manager-pro.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,829 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 296 | 225 | 1,683 |
PO File | 2 | 60 | 64 | 146 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 5 | 15.62% |
▷ Concrete classes | 27 | 84.38% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 60 | 42.86% |
▷ Public methods | 128 | 91.43% |
▷ Protected methods | 5 | 3.57% |
▷ Private methods | 7 | 5.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin