Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.98ms] Passed 4 tests
Analyzing server-side resources used by PayFlexi Checkout for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.06 ▼6.54 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.18 ▼13.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.71 ▼2.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.42 ▼13.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.64 ▼0.55 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PayFlexi Checkout for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.21 ▼0.07 | 1.75 ▲0.03 | 36.62 ▼7.45 |
Dashboard /wp-admin | 2,205 ▲28 | 5.57 ▲0.04 | 93.44 ▼3.65 | 41.88 ▼2.28 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.99 ▲0.03 | 39.41 ▼2.20 | 35.74 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.07 ▲0.02 | 616.93 ▼66.82 | 54.54 ▲3.11 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▲0.01 | 96.13 ▼11.88 | 42.51 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
payflexi-checkout-for-woocommerce/init.php 85% from 13 tests
The entry point to "PayFlexi Checkout for WooCommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.8.0")
- Main file name: Name the main plugin file the same as the plugin slug ("payflexi-checkout-for-woocommerce.php" instead of "init.php")
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
Good job! No executable or dangerous file extensions detected904 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 155 | 239 | 557 |
CSS | 1 | 23 | 4 | 238 |
JavaScript | 2 | 22 | 1 | 109 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 1 | 2.86% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.57% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-icon-primary.png | 44.32KB | 12.00KB | ▼ 72.94% |
assets/images/logo-icon-white.png | 35.93KB | 12.00KB | ▼ 66.61% |
assets/images/payflexi-logo-light.png | 6.76KB | 3.76KB | ▼ 44.32% |
assets/images/payflexi-wc.png | 7.35KB | 3.01KB | ▼ 59.12% |
assets/images/logo-dark@2x.png | 24.30KB | 7.07KB | ▼ 70.89% |