Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.54ms] Passed 4 tests
An overview of server-side resources used by PayPal Express Checkout For Woo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.34 ▼9.12 |
Dashboard /wp-admin | 3.38 ▲0.04 | 48.98 ▼15.26 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.05 ▼1.96 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.61 ▼7.81 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.35 ▲0.15 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 263 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by PayPal Express Checkout For Woo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲124 | 13.51 ▼0.85 | 7.51 ▲4.86 | 43.06 ▼5.79 |
Dashboard /wp-admin | 2,194 ▲14 | 5.63 ▼0.02 | 89.90 ▼1.42 | 40.70 ▲2.44 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 1.98 ▼0.12 | 33.66 ▼4.85 | 32.75 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.55 ▲0.34 | 688.03 ▼3.44 | 56.29 ▲3.43 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.20 ▼0.02 | 107.46 ▲4.63 | 44.21 ▲0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 151× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/RedirectUrls.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/vendor/symfony/yaml/Tests/YamlTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/InputFields.php:18
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/PaymentInstruction.php:24
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Api\\BaseAddress' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/Address.php:15
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/Capture.php:29
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/OpenIdTokeninfo.php:20
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/ExternalFunding.php:21
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/lib/PayPal/Api/TemplateSettings.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
woo-paypal-express-checkout/woo-paypal-express-checkout.php Passed 13 tests
Analyzing the main PHP file in "PayPal Express Checkout For Woo" version 1.0.2
69 characters long description:
Express Checkout for WooCommerce. Develop by Official PayPal Partner.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/woo-paypal-express-checkout/includes/php-library/paypal-rest/vendor/bin/phpunit.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 216 | 3,555 | 16,484 | 18,319 |
YAML | 20 | 127 | 89 | 3,144 |
JSON | 4 | 0 | 0 | 573 |
JavaScript | 3 | 2 | 27 | 129 |
Markdown | 4 | 41 | 0 | 99 |
CSS | 2 | 1 | 0 | 40 |
XML | 1 | 3 | 0 | 27 |
Bourne Shell | 1 | 3 | 5 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 6 | |
Traits | 2 | |
Classes | 201 | |
▷ Abstract classes | 3 | 1.49% |
▷ Concrete classes | 198 | 98.51% |
▷ Final classes | 0 | 0.00% |
Methods | 2,318 | |
▷ Static methods | 96 | 4.14% |
▷ Public methods | 2,261 | 97.54% |
▷ Protected methods | 8 | 0.35% |
▷ Private methods | 49 | 2.11% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 32 | |
▷ Global constants | 7 | 21.88% |
▷ Class constants | 25 | 78.12% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin