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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▲2.76ms] Passed 4 tests
Analyzing server-side resources used by Perfect Checkout for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 48.84 ▲8.87 |
Dashboard /wp-admin | 4.05 ▲0.71 | 62.22 ▼2.54 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 54.17 ▲5.79 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 95.86 ▼1.07 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 49.67 ▲12.57 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 194 new files
Database: no new tables, 11 new options
New WordPress options |
---|
perfectcheckout_admin_notices |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
woocommerce_shipping_cost_requires_address |
widget_recent-posts |
perfectcheckout_version |
can_compress_scripts |
perfectcheckout_install_date |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Perfect Checkout for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.37 ▲0.02 | 1.87 ▲0.21 | 41.36 ▲0.46 |
Dashboard /wp-admin | 2,227 ▲50 | 5.61 ▼0.10 | 99.99 ▲8.44 | 94.03 ▲54.03 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.02 ▲0.03 | 36.25 ▼2.66 | 31.97 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.62 ▲0.47 | 770.39 ▲69.45 | 49.35 ▲1.73 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.22 ▲0.05 | 97.27 ▼3.75 | 79.01 ▲31.10 |
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 does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- woocommerce_shipping_cost_requires_address
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/perfect-checkout/packages/extras/includes/filters/filter-v1.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/perfect-checkout/packages/extras/includes/filters/filter-v2.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/perfect-checkout/packages/framework/load-package.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/perfect-checkout/packages/extras/includes/filters/filter-v2-preview.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: paypal, stripe, payments, checkout, square
perfect-checkout/perfect-checkout.php Passed 13 tests
The entry point to "Perfect Checkout for WooCommerce" version 1.6.12 is a PHP file that has certain tags in its header comment area
54 characters long description:
The absolute best checkout experience for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin19,494 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 166 | 4,691 | 12,457 | 18,360 |
CSS | 9 | 95 | 39 | 888 |
JavaScript | 7 | 54 | 67 | 225 |
SVG | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 3 | 2.44% |
▷ Concrete classes | 120 | 97.56% |
▷ Final classes | 2 | 1.67% |
Methods | 911 | |
▷ Static methods | 276 | 30.30% |
▷ Public methods | 789 | 86.61% |
▷ Protected methods | 83 | 9.11% |
▷ Private methods | 39 | 4.28% |
Functions | 67 | |
▷ Named functions | 30 | 44.78% |
▷ Anonymous functions | 37 | 55.22% |
Constants | 52 | |
▷ Global constants | 43 | 82.69% |
▷ Class constants | 9 | 17.31% |
▷ Public constants | 9 | 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
5 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/fav/android-chrome-512x512.png | 14.90KB | 4.73KB | ▼ 68.28% |
assets/images/fav/android-chrome-192x192.png | 4.14KB | 2.37KB | ▼ 42.84% |
assets/images/fav/favicon-16x16.png | 0.29KB | 0.32KB | 0.00% |
assets/images/fav/apple-touch-icon.png | 5.14KB | 2.95KB | ▼ 42.58% |
assets/images/fav/favicon-32x32.png | 0.48KB | 0.44KB | ▼ 6.57% |