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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.66ms] Passed 4 tests
A check of server-side resources used by PatSaTECH's Opayo Server Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 33.93 ▼10.93 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.10 ▼0.28 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.65 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.11 ▼12.41 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.87 ▲0.98 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PatSaTECH's Opayo Server Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.31 ▼1.07 | 4.44 ▲2.45 | 43.74 ▲0.14 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.03 | 112.75 ▲8.55 | 43.15 ▼0.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.05 | 33.57 ▼7.69 | 31.07 ▼9.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.22 ▼0.05 | 645.54 ▼0.39 | 59.16 ▼7.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.02 | 100.72 ▼0.14 | 41.97 ▼3.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/patsatech-wc-opayo-server/class-patsatech-wc-opayo-server.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Opayo WooCommerce Settings Page), #2 (Example Checkout Page displaying Opayo payment method.), #3 (Card Selection page on Opayo site.), #4 (Card Details entry page.), #5 (Page displaying cart and card details on opayo site.), #6 (Page displaying 3D Secure windows if the payment is challenged.), #7 (Payment being processed.), #8 (Order Received page displayed by WooCommerce.)
patsatech-wc-opayo-server/class-patsatech-wc-opayo-server.php 85% from 13 tests
The principal PHP file in "PatSaTECH's Opayo Server Gateway for WooCommerce" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/lang/")
- Main file name: The principal plugin file should be the same as the plugin slug ("patsatech-wc-opayo-server.php" instead of "class-patsatech-wc-opayo-server.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin480 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 123 | 93 | 480 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 7.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/card-visa.png | 4.73KB | 1.66KB | ▼ 64.98% |
images/card-mc.png | 5.42KB | 1.77KB | ▼ 67.41% |
images/card-jcb.png | 5.54KB | 1.72KB | ▼ 69.02% |
images/card-amex.png | 4.45KB | 1.65KB | ▼ 62.79% |
images/card-disc.png | 4.49KB | 1.47KB | ▼ 67.30% |