Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.13ms] Passed 4 tests
Server-side resources used by In-Context PayPal Express Checkout for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 41.74 ▲2.02 |
Dashboard /wp-admin | 3.54 ▲0.20 | 45.40 ▼14.33 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 47.30 ▲4.43 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 95.00 ▲8.23 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 34.45 ▼0.64 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for In-Context PayPal Express Checkout for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.66 ▼0.71 | 1.62 ▲0.05 | 43.47 ▲1.33 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.04 | 109.47 ▲8.02 | 42.40 ▲1.24 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.06 | 40.33 ▲4.45 | 34.68 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 18.44 ▼5.08 | 600.30 ▼81.78 | 74.31 ▲22.38 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.05 | 95.94 ▼9.63 | 43.98 ▼1.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wpc-paypal-express-checkout/admin/partials/wpc-paypal-express-checkout-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("#")
wpc-paypal-express-checkout/wpc-paypal-express-checkout.php Passed 13 tests
The principal PHP file in "In-Context PayPal Express Checkout for WooCommerce" v. 1.2.2 is loaded by WordPress automatically on each request
76 characters long description:
The PayPal Express Checkout gives you a simplified best checkout experience.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,856 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 225 | 335 | 1,670 |
JavaScript | 2 | 15 | 0 | 169 |
CSS | 2 | 0 | 5 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 29.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 5 | 6.25% |
▷ Public methods | 76 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin