Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > User error in wp-content/plugins/payo-cod/includes/payo-cod-activator.php+114
Please install and activate WooCommerce before activation.
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.98ms] Passed 4 tests
This is a short check of server-side resources used by Payo COD
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.40 ▼1.51 |
Dashboard /wp-admin | 3.49 ▲0.14 | 47.37 ▼15.79 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 47.60 ▼1.36 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 98.96 ▲6.75 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 46.06 ▲12.73 |
Payments /wp-admin/admin.php?page=payo-cod-payments | 3.38 | 31.81 |
Settings /wp-admin/admin.php?page=payo-cod | 3.38 | 32.42 |
Orders /wp-admin/admin.php?page=payo-cod-orders | 3.39 | 29.19 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Payo COD
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.76 ▼0.99 | 5.40 ▲3.45 | 39.63 ▼3.79 |
Dashboard /wp-admin | 2,247 ▲59 | 5.06 ▼0.82 | 104.02 ▼15.49 | 31.59 ▼14.29 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.53 ▲0.52 | 40.74 ▲5.22 | 56.87 ▲17.86 |
Add New Post /wp-admin/post-new.php | 1,710 ▲196 | 25.20 ▲7.82 | 582.05 ▼100.65 | 32.30 ▼21.69 |
Media Library /wp-admin/upload.php | 1,492 ▲101 | 4.40 ▲0.16 | 100.40 ▼1.67 | 39.27 ▼3.83 |
Payments /wp-admin/admin.php?page=payo-cod-payments | 884 | 1.85 | 26.24 | 41.43 |
Settings /wp-admin/admin.php?page=payo-cod | 928 | 1.99 | 33.14 | 26.75 |
Orders /wp-admin/admin.php?page=payo-cod-orders | 904 | 1.90 | 28.30 | 23.68 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=payo-cod
- > Notice in wp-content/plugins/payo-cod/admin/partials/config-page.php+58
Undefined index: app_mode
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/payo-cod/public/partials/payo-cod-public-display.php
- > /wp-content/plugins/payo-cod/admin/partials/payo-cod-admin-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/payo-cod/admin/partials/payments-page.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/payo-cod/admin/partials/config-page.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/payo-cod/admin/partials/orders-page.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid url: ""
payo-cod/payo-cod.php 92% from 13 tests
The main PHP file in "Payo COD" ver. 2.3.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.9" instead of "6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,413 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 305 | 588 | 1,117 |
JavaScript | 3 | 43 | 60 | 187 |
CSS | 3 | 25 | 13 | 109 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 9.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 5 | 8.06% |
▷ Public methods | 44 | 70.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 29.03% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/payo_logo.png | 6.60KB | 2.72KB | ▼ 58.87% |