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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.90ms] Passed 4 tests
This is a short check of server-side resources used by Order On Mobile for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.57 ▼1.77 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.29 ▼16.58 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.99 ▲7.74 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.17 ▼27.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.41 ▲2.42 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Order On Mobile for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲226 | 13.59 ▼0.79 | 6.50 ▲4.66 | 33.35 ▼9.81 |
Dashboard /wp-admin | 2,267 ▲82 | 5.83 ▲0.91 | 95.67 ▼23.74 | 42.19 ▼7.91 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.15 ▲0.02 | 41.38 ▲1.99 | 39.81 ▲5.79 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 17.60 ▼5.48 | 621.70 ▼21.71 | 45.29 ▼4.38 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.23 ▼0.07 | 95.94 ▼12.29 | 43.94 ▲3.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/order-on-mobile-for-woocommerce/public/partials/woocommerce-order-on-whatsapp-public-display.php
- > /wp-content/plugins/order-on-mobile-for-woocommerce/admin/partials/woocommerce-order-on-whatsapp-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #7 ((PRO) WOOW Analytics - by country on top header (screenshot-7.png)) image not found
- Screenshots: A description for screenshot #0 is required in order-on-mobile-for-woocommerce/assets to your readme.txt
order-on-mobile-for-woocommerce/woocommerce-order-on-whatsapp.php 69% from 13 tests
"Order On Mobile for WooCommerce" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("6.2" instead of "7.8")
- Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("order-on-mobile-for-woocommerce.php" instead of "woocommerce-order-on-whatsapp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin621 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 195 | 559 | 551 |
CSS | 2 | 8 | 9 | 45 |
JavaScript | 2 | 7 | 57 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 36 | |
▷ Static methods | 8 | 22.22% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/whatsapp-button.png | 21.18KB | 7.75KB | ▼ 63.41% |