Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.16MB] [CPU: ▼1.02ms] Passed 4 tests
Analyzing server-side resources used by Phone Orders for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 43.02 ▲4.25 |
Dashboard /wp-admin | 4.72 ▲1.37 | 54.84 ▼5.10 |
Posts /wp-admin/edit.php | 4.77 ▲1.41 | 50.36 ▲1.89 |
Add New Post /wp-admin/post-new.php | 7.24 ▲1.35 | 90.57 ▼5.10 |
Media Library /wp-admin/upload.php | 4.58 ▲1.34 | 49.07 ▲14.68 |
Phone Orders /wp-admin/admin.php?page=phone-orders-for-woocommerce | 4.46 | 34.09 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 103 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_phone_orders_log |
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
phone-orders-for-woocommerce-activation-notice-shown |
phone-orders-for-woocommerce-version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Phone Orders for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.38 ▲0.03 | 1.59 ▲0.07 | 35.17 ▼3.95 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.03 | 82.82 ▼2.41 | 39.09 ▲0.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 37.16 ▼6.61 | 30.89 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 18.10 ▼4.92 | 611.44 ▼81.21 | 74.56 ▲21.12 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.05 | 94.29 ▼5.48 | 39.71 ▼4.46 |
Phone Orders /wp-admin/admin.php?page=phone-orders-for-woocommerce | 55 | 0.42 | 0.11 | 10.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-comments
- phone-orders-for-woocommerce-version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=phone-orders-for-woocommerce
- > Error in wp-content/plugins/phone-orders-for-woocommerce/classes/class-wc-phone-orders-main.php+119
Uncaught Error: Call to undefined function wc_get_cart_url() in wp-content/plugins/phone-orders-for-woocommerce/classes/class-wc-phone-orders-main.php:119
Stack trace:
#0 wp-content/plugins/phone-orders-for-woocommerce/classes/class-wc-phone-orders-main.php(29): WC_Phone_Orders_Main::load_scripts()
#1 wp-includes/class-wp-hook.php(310): WC_Phone_Orders_Main->{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin-header.php(118): do_action()
#5 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=phone-orders-for-woocommerce
- > Network (severe)
wp-admin/admin.php?page=phone-orders-for-woocommerce - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 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
8 plugin tags: call center, manual, woocommerce, backend, manual orders...
phone-orders-for-woocommerce/phone-orders-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Phone Orders for WooCommerce" version 3.8.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "3.3")
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
No dangerous file extensions were detected35,974 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Vuejs Component | 45 | 1,247 | 74 | 12,359 |
JSON | 2 | 0 | 0 | 10,014 |
PHP | 27 | 1,580 | 701 | 6,688 |
PO File | 6 | 1,782 | 2,285 | 4,161 |
JavaScript | 9 | 214 | 36 | 1,546 |
CSS | 5 | 199 | 58 | 1,206 |
PHP code Passed 2 tests
A short review of 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.49 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 368.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 300 | |
▷ Static methods | 44 | 14.67% |
▷ Public methods | 175 | 58.33% |
▷ Protected methods | 97 | 32.33% |
▷ Private methods | 28 | 9.33% |
Functions | 59 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 59 | 100.00% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin