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.33MB] [CPU: ▼4.23ms] Passed 4 tests
A check of server-side resources used by Easy PayPal & Stripe Buy Now Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 42.43 ▲1.41 |
Dashboard /wp-admin | 3.63 ▲0.33 | 46.52 ▼2.35 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 49.07 ▲2.51 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 81.77 ▼18.49 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 51.97 ▲17.61 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
wpecpp_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easy PayPal & Stripe Buy Now Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,047 ▲300 | 16.21 ▲1.91 | 192.94 ▲191.23 | 47.46 ▼0.05 |
Dashboard /wp-admin | 2,268 ▲90 | 5.64 ▼0.07 | 94.34 ▼8.96 | 40.01 ▼1.17 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 2.15 ▲0.20 | 42.67 ▲4.93 | 39.71 ▲6.31 |
Add New Post /wp-admin/post-new.php | 1,585 ▲56 | 23.30 ▲0.13 | 687.49 ▼7.01 | 56.09 ▼1.93 |
Media Library /wp-admin/upload.php | 1,473 ▲76 | 4.17 ▲0.00 | 108.83 ▲9.25 | 45.34 ▲4.05 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- wpecpp_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-ecommerce-paypal/wp-ecommerce-paypal.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ecommerce, gateway, shop, paypal button, paypal
wp-ecommerce-paypal/wp-ecommerce-paypal.php Passed 13 tests
"Easy PayPal & Stripe Buy Now Button" version 1.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
Add a PayPal or Stripe Buy Now Button to your website and start selling today. No Coding Required. Official PayPal & Stripe Partner.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,263 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 291 | 168 | 2,539 |
CSS | 2 | 26 | 5 | 538 |
JavaScript | 2 | 26 | 0 | 154 |
SVG | 3 | 0 | 1 | 32 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paypal-recommended.png | 0.55KB | 0.39KB | ▼ 29.73% |
assets/images/paypal-accept-paypal.png | 1.58KB | 1.04KB | ▼ 34.22% |
assets/images/paypal-advanced.png | 8.45KB | 3.54KB | ▼ 58.07% |
assets/images/paypal-express.png | 5.46KB | 2.48KB | ▼ 54.68% |
assets/images/paypal-accept-cards.png | 4.63KB | 2.68KB | ▼ 42.16% |