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.01MB] [CPU: ▼5.23ms] Passed 4 tests
This is a short check of server-side resources used by Barclay ePDQ payment gateway for wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 30.98 ▼10.02 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.81 ▼5.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.57 ▼4.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.35 ▼0.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.12 ▲2.04 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Barclay ePDQ payment gateway for wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.53 ▼1.06 | 1.67 ▼0.41 | 40.17 ▼4.47 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.07 | 108.99 ▼10.36 | 44.46 ▼5.36 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.06 ▲0.05 | 38.51 ▲0.77 | 34.52 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.39 ▲0.35 | 652.88 ▼20.74 | 48.06 ▼9.03 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.16 ▼0.07 | 93.34 ▼11.46 | 42.50 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-epdq-payment-gateway/class.epdq.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-epdq-payment-gateway/woocommerce-epdq/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-epdq-payment-gateway/index.php:18
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-epdq-payment-gateway/woocommerce-epdq/class.epdq.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (screenshot-1.png is the screen shot of the plugin settings page from a working example.)
woocommerce-epdq-payment-gateway/index.php 92% from 13 tests
The entry point to "Barclay ePDQ payment gateway for wordpress" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-epdq-payment-gateway.php" instead of "index.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
No dangerous file extensions were detected1,364 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 109 | 69 | 1,296 |
JavaScript | 1 | 24 | 15 | 68 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 123.00 |
▷ Minimum class complexity | 123.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 9.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 209.49KB | 88.76KB | ▼ 57.63% |