Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User error in wp-content/plugins/cod-confirmation-for-india/muyplg.php+48
Please install woocommerce before activating.
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.07ms] 75% from 4 tests
Server-side resources used by COD Order Confirmation for India
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,909.86ms on /wp-admin/admin.php?page=Orders)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.37 ▼0.74 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.39 ▼7.37 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.47 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 91.45 ▼2.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.97 ▼1.52 |
Transactions /wp-admin/admin.php?page=transactions | 3.29 | 2,112.27 |
Help /wp-admin/admin.php?page=help | 3.29 | 249.87 |
COD Orders /wp-admin/admin.php?page=Orders | 3.29 | 1,909.86 |
COD Settings /wp-admin/admin.php?page=COD_confirm | 3.40 | 47.41 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_COD_settings |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
COD Order Confirmation for India: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲85 | 14.35 ▼0.25 | 1.66 ▲0.03 | 43.60 ▼1.82 |
Dashboard /wp-admin | 2,249 ▲68 | 4.92 ▼0.75 | 93.97 ▼6.18 | 43.88 ▲2.95 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.50 ▲0.50 | 41.71 ▲5.87 | 33.11 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.39 ▼0.08 | 668.36 ▲10.53 | 49.89 ▼2.98 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 4.52 ▲0.22 | 96.46 ▼4.83 | 40.42 ▼7.81 |
Transactions /wp-admin/admin.php?page=transactions | 1,012 | 2.73 | 52.79 | 38.20 |
Help /wp-admin/admin.php?page=help | 831 | 2.03 | 26.34 | 23.35 |
COD Orders /wp-admin/admin.php?page=Orders | 1,070 | 2.48 | 50.50 | 32.54 |
COD Settings /wp-admin/admin.php?page=COD_confirm | 1,646 | 2.21 | 37.92 | 65.13 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=COD_confirm
- > Notice in wp-content/plugins/cod-confirmation-for-india/cod_setting.php+92
Trying to access array offset on value of type int
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=COD_confirm
- > Notice in wp-content/plugins/cod-confirmation-for-india/cod_setting.php+292
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=COD_confirm
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP Passed 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
The SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #3, #4, #5 in cod-confirmation-for-india/assets to your readme.txt
cod-confirmation-for-india/muyplg.php 85% from 13 tests
The primary PHP file in "COD Order Confirmation for India" version 1.2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cod-confirmation-for-india.php" instead of "muyplg.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
There were no executable files found in this plugin3,815 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 60 | 135 | 2,109 |
PHP | 9 | 73 | 53 | 1,546 |
JavaScript | 1 | 0 | 4 | 160 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.30MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
images/forward_enabled_hover.png | 1.35KB | 0.58KB | ▼ 56.93% |
images/back_enabled_hover.png | 1.34KB | 0.60KB | ▼ 55.56% |
images/sms_settings.png | 117.57KB | 40.54KB | ▼ 65.52% |