Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼169.01ms] Passed 4 tests
Server-side resources used by Event Espresso - QuickPay (EE 4.x+)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 43.69 ▲19.56 |
Dashboard /wp-admin | 3.06 ▲0.01 | 52.03 ▲0.99 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.34 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 101.98 ▼669.63 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 38.62 ▼8.57 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Event Espresso - QuickPay (EE 4.x+)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.29 ▲0.79 | 10.49 ▼0.31 | 47.93 ▼3.32 |
Dashboard /wp-admin | 2,967 ▲33 | 5.97 ▼0.17 | 155.53 ▼28.95 | 121.83 ▲9.22 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 73.14 ▼1.76 | 99.44 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.73 ▲0.18 | 437.57 ▲41.14 | 116.46 ▼1.68 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.02 | 185.37 ▼9.36 | 128.12 ▼31.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ee4-quickpay/payment_methods/quickpay_offsite/EEG_quickpay_offsite.gateway.php
- > /wp-content/plugins/ee4-quickpay/payment_methods/quickpay_offsite/EE_PMT_quickpay_offsite.pm.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: status in wp-content/plugins/ee4-quickpay/templates/meta_box/transaction.actions.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ee4-quickpay/event-espresso-quickpay.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ee4-quickpay/templates/meta_box/transaction.actions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ee4-quickpay/payment_methods/quickpay_offsite/help_tabs/quickpay_offsite.help_tab.php:1
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: eventespresso quickpay, eventespresso, event-espresso quickpay, gateway, event espresso...
ee4-quickpay/event-espresso-quickpay.php 85% from 13 tests
This is the main PHP file of "Event Espresso - QuickPay (EE 4.x+)" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ee4-quickpay.php" instead of "event-espresso-quickpay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,486 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 261 | 716 | 1,109 |
CSS | 2 | 34 | 9 | 150 |
PO File | 1 | 43 | 45 | 140 |
JavaScript | 2 | 17 | 2 | 87 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 29 | 42.65% |
▷ Public methods | 50 | 73.53% |
▷ Protected methods | 3 | 4.41% |
▷ Private methods | 15 | 22.06% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cards/edankort.png | 1.00KB | 1.04KB | 0.00% |
assets/images/cards/viabill.png | 1.29KB | 1.32KB | 0.00% |
assets/images/cards/maestro.png | 1.73KB | 1.77KB | 0.00% |
assets/images/cards/diners.png | 1.41KB | 1.50KB | 0.00% |
assets/images/cards/jcb.png | 1.66KB | 1.69KB | 0.00% |