Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.04MB] [CPU: ▲2.64ms] Passed 4 tests
Server-side resources used by Whats Order
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.18 ▲1.72 | 49.86 ▲10.37 |
Dashboard /wp-admin | 4.33 ▲1.03 | 53.45 ▲8.84 |
Posts /wp-admin/edit.php | 4.44 ▲1.09 | 57.35 ▲9.15 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.02 | 93.95 ▼14.98 |
Media Library /wp-admin/upload.php | 4.25 ▲1.02 | 42.64 ▲7.56 |
Items /wp-admin/admin.php?page=sos-whats-order-0 | 4.45 | 37.87 |
Settings /wp-admin/admin.php?page=sos-whats-order-3 | 4.44 | 36.93 |
sos-whats-order-1 /wp-admin/admin.php?page=sos-whats-order-1 | 4.45 | 39.05 |
Data import /wp-admin/admin.php?page=sos-whats-order-2 | 4.47 | 37.25 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 104 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_sos_wso_carts |
wp_sos_wso_orders |
wp_sos_wso_items |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
sos-whats-order_db-version |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Whats Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲127 | 13.16 ▼1.40 | 1.79 ▲0.08 | 41.05 ▲1.79 |
Dashboard /wp-admin | 2,242 ▲51 | 4.88 ▼1.02 | 107.92 ▲5.83 | 39.57 ▼2.13 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 1.98 ▼0.05 | 39.80 ▼2.70 | 36.83 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.08 ▼0.03 | 636.96 ▼46.86 | 62.04 ▲10.03 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.24 ▲0.05 | 96.41 ▼16.16 | 42.67 ▼4.97 |
Items /wp-admin/admin.php?page=sos-whats-order-0 | 837 | 2.06 | 30.74 | 25.77 |
Settings /wp-admin/admin.php?page=sos-whats-order-3 | 922 | 2.02 | 23.75 | 46.22 |
sos-whats-order-1 /wp-admin/admin.php?page=sos-whats-order-1 | 910 | 2.03 | 25.23 | 26.13 |
Data import /wp-admin/admin.php?page=sos-whats-order-2 | 914 | 2.19 | 24.83 | 30.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_sos_wso_carts
- wp_sos_wso_items
- wp_sos_wso_orders
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- sos-whats-order_db-version
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 62× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/whats-order/db/database.php
- > /wp-content/plugins/whats-order/loader.php
- > /wp-content/plugins/whats-order/sos/wp/data/section.php
- > /wp-content/plugins/whats-order/sos/wp/be/menu.php
- > /wp-content/plugins/whats-order/src/cart.php
- > /wp-content/plugins/whats-order/sos/wp/data/formfield.php
- > /wp-content/plugins/whats-order/sos/wp/email.php
- > /wp-content/plugins/whats-order/form/config.php
- > /wp-content/plugins/whats-order/sos/wp/be/navtab.php
- > /wp-content/plugins/whats-order/sos/wp/data/encryption.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/config.php:2
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/io.php:4
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/item.php:4
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/items.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: whatsapp, e-commerce, order online, cart
whats-order/whats-order.php 92% from 13 tests
The main PHP script in "Whats Order" version 0.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,273 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 1,143 | 771 | 6,288 |
JavaScript | 6 | 64 | 33 | 778 |
CSS | 3 | 12 | 4 | 177 |
HTML | 2 | 3 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 57 | |
▷ Abstract classes | 1 | 1.75% |
▷ Concrete classes | 56 | 98.25% |
▷ Final classes | 0 | 0.00% |
Methods | 436 | |
▷ Static methods | 69 | 15.83% |
▷ Public methods | 332 | 76.15% |
▷ Protected methods | 55 | 12.61% |
▷ Private methods | 49 | 11.24% |
Functions | 40 | |
▷ Named functions | 17 | 42.50% |
▷ Anonymous functions | 23 | 57.50% |
Constants | 80 | |
▷ Global constants | 1 | 1.25% |
▷ Class constants | 79 | 98.75% |
▷ Public constants | 75 | 94.94% |
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
No PNG files were detected