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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.90ms] Passed 4 tests
This is a short check of server-side resources used by Om Stripe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.05 | 42.29 ▼3.21 |
Dashboard /wp-admin | 3.61 ▲0.05 | 54.37 ▼1.91 |
Posts /wp-admin/edit.php | 3.72 ▲0.05 | 54.52 ▲5.06 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.05 | 107.55 ▲3.67 |
Media Library /wp-admin/upload.php | 3.53 ▲0.04 | 44.09 ▲7.36 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_om_stripe |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
om_stripe_db_version |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Om Stripe
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲226 | 15.59 ▲1.22 | 122.34 ▲120.44 | 45.15 ▲1.34 |
Dashboard /wp-admin | 2,194 ▲14 | 5.61 ▼0.03 | 95.74 ▲2.90 | 75.37 ▲29.75 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▼0.03 | 38.62 ▲2.05 | 34.88 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,545 ▼4 | 18.25 ▼5.28 | 736.54 ▲50.04 | 62.98 ▲0.42 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.25 ▲0.07 | 102.10 ▲1.81 | 79.87 ▲33.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/om-stripe/lib/Stripe/Plan.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/om-stripe/lib/Stripe/Token.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/om-stripe/lib/Stripe/Invoice.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Object' not found in wp-content/plugins/om-stripe/lib/Stripe/List.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/om-stripe/lib/Stripe/Transfer.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/om-stripe/lib/Stripe/InvoiceItem.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-stripe/including_js_css.php:29
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Error' not found in wp-content/plugins/om-stripe/lib/Stripe/AuthenticationError.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/om-stripe/lib/Stripe/Charge.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Error' not found in wp-content/plugins/om-stripe/lib/Stripe/CardError.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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Om Stripe===
) - Screenshots: A description for screenshot #3 is required in om-stripe/assets to your readme.txt
om-stripe/index.php 92% from 13 tests
This is the main PHP file of "Om Stripe" version 02.00.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("om-stripe.php" instead of "index.php")
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
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/om-stripe/lib/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 170 | 30 | 1,269 |
JavaScript | 2 | 19 | 26 | 105 |
CSS | 1 | 2 | 1 | 65 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 4 | 16.67% |
▷ Concrete classes | 20 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 61 | 51.69% |
▷ Public methods | 107 | 90.68% |
▷ Protected methods | 6 | 5.08% |
▷ Private methods | 5 | 4.24% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/om_stripe.png | 3.37KB | 0.67KB | ▼ 80.02% |