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.18MB] [CPU: ▼6.34ms] Passed 4 tests
Analyzing server-side resources used by FreePay for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 40.77 ▼0.86 |
Dashboard /wp-admin | 3.50 ▲0.16 | 48.29 ▼15.39 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 46.02 ▼5.01 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 92.96 ▼4.10 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 33.77 ▲1.09 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
woo_freepay_version |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for FreePay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲48 | 14.34 ▲0.01 | 1.85 ▲0.04 | 44.34 ▼0.85 |
Dashboard /wp-admin | 2,203 ▲23 | 5.53 ▼0.19 | 87.17 ▼12.64 | 40.47 ▼3.38 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.95 ▼0.00 | 38.71 ▲1.44 | 33.07 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.24 ▼0.02 | 620.09 ▼27.19 | 52.20 ▲7.22 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.17 ▼0.02 | 94.93 ▼5.39 | 43.61 ▼0.71 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- woo_freepay_version
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/freepay-for-woocommerce/helpers/requests.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_FreePay_API' not found in wp-content/plugins/freepay-for-woocommerce/classes/api/woo-freepay-api-transaction.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freepay-for-woocommerce/helpers/notices.php:91
- > PHP Fatal error
Uncaught Error: Class 'WC_FreePay_API_Transaction' not found in wp-content/plugins/freepay-for-woocommerce/classes/api/woo-freepay-api-payment.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/freepay-for-woocommerce/views/html-order-table-transaction-data.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/freepay-for-woocommerce/classes/woo-freepay-order.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_FreePay_API_Transaction' not found in wp-content/plugins/freepay-for-woocommerce/classes/api/woo-freepay-api-subscription.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: woocommerce freepay, woocommerce, psp, gateway, integration...
freepay-for-woocommerce/freepay-for-woocommerce.php Passed 13 tests
"FreePay for WooCommerce" version 1.8.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Integrates your FreePay payment gateway into your WooCommerce installation.
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 detected4,244 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 735 | 1,566 | 2,734 |
SVG | 7 | 1 | 3 | 952 |
CSS | 1 | 42 | 0 | 222 |
PO File | 1 | 86 | 87 | 222 |
JavaScript | 2 | 16 | 2 | 114 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 69 | 35.57% |
▷ Public methods | 186 | 95.88% |
▷ Protected methods | 3 | 1.55% |
▷ Private methods | 5 | 2.58% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/refresh.png | 3.75KB | 2.06KB | ▼ 45.03% |
assets/images/icons/ok.png | 3.83KB | 2.20KB | ▼ 42.57% |
assets/images/icons/error.png | 3.29KB | 2.08KB | ▼ 36.84% |