Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.37ms] Passed 4 tests
Server-side resources used by Order on Mobile for Wocoommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.98 ▲0.89 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.58 ▼10.56 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.18 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.62 ▼6.82 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.30 ▲0.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Order on Mobile for Wocoommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.36 | 2.01 ▲0.38 | 43.40 ▲2.66 |
Dashboard /wp-admin | 2,195 ▲17 | 5.64 ▼0.07 | 86.94 ▼13.64 | 38.27 ▼3.21 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.15 ▲0.20 | 35.98 ▲0.40 | 35.54 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.08 ▲0.14 | 671.57 ▲37.57 | 50.87 ▼4.24 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.07 | 98.47 ▼11.47 | 40.47 ▼6.26 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: order, products, woocommerce mobile, woocommerce, woocommerce whatsapp...
woo-order-on-whatsapp/woo-order-on-whatsapp.php Passed 13 tests
"Order on Mobile for Wocoommerce" version 2.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
Receive orders requests direct on your phone from buttons on your woocommerce product page, cart page and after the checkout.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected792 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 167 | 411 | 704 |
CSS | 2 | 10 | 5 | 55 |
JavaScript | 2 | 1 | 0 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 1 | 20.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 1 | 3.45% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/whatsapp.png | 0.68KB | 0.63KB | ▼ 7.91% |
assets/img/icon_btn.png | 0.79KB | 0.98KB | 0.00% |
assets/img/whatsapp-logo (4).png | 0.59KB | 0.68KB | 0.00% |