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.01MB] [CPU: ▼8.74ms] Passed 4 tests
An overview of server-side resources used by YITH PayPal Express Checkout for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.88 ▼1.16 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.69 ▼13.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.30 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.46 ▼16.03 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.78 ▼4.64 |
Server storage [IO: ▲3.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 314 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YITH PayPal Express Checkout for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.67 ▲0.31 | 1.76 ▲0.09 | 43.83 ▲0.34 |
Dashboard /wp-admin | 2,204 ▲37 | 5.61 ▼0.06 | 94.18 ▼16.93 | 42.36 ▼4.67 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.03 | 39.43 ▼0.76 | 37.20 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.06 ▼0.32 | 654.16 ▲47.82 | 56.83 ▲8.43 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.01 | 94.50 ▼1.89 | 42.19 ▲0.56 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: recurring payments, gateways, yith, paypal, gateway paypal...
yith-paypal-express-checkout-for-woocommerce/init.php 77% from 13 tests
This is the main PHP file of "YITH PayPal Express Checkout for WooCommerce" version 1.32.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.2" instead of "8.1")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yith-paypal-express-checkout-for-woocommerce.php" instead of "init.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 320 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected43,945 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 180 | 3,353 | 6,975 | 17,419 |
JavaScript | 49 | 1,350 | 829 | 9,427 |
CSS | 18 | 1,658 | 243 | 9,165 |
PO File | 7 | 1,794 | 2,214 | 4,960 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 2 | 12 | 9 | 48 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 41.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 2 | 4.88% |
▷ Concrete classes | 39 | 95.12% |
▷ Final classes | 0 | 0.00% |
Methods | 538 | |
▷ Static methods | 59 | 10.97% |
▷ Public methods | 422 | 78.44% |
▷ Protected methods | 90 | 16.73% |
▷ Private methods | 26 | 4.83% |
Functions | 141 | |
▷ Named functions | 133 | 94.33% |
▷ Anonymous functions | 8 | 5.67% |
Constants | 17 | |
▷ Global constants | 16 | 94.12% |
▷ Class constants | 1 | 5.88% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/sidebar-left.png | 0.95KB | 0.11KB | ▼ 87.91% |
plugin-fw/assets/images/banner-premium.png | 10.78KB | 5.54KB | ▼ 48.66% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/spinner.png | 0.15KB | 0.14KB | ▼ 5.88% |
plugin-fw/assets/images/colorbox/border1.png | 0.61KB | 0.82KB | 0.00% |