Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.41ms] Passed 4 tests
A check of server-side resources used by Online Ordering System For Restaurants & Local Retail by Orderable
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.58 ▼0.35 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.37 ▼7.81 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.29 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.08 ▲3.57 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.08 ▲2.08 |
Server storage [IO: ▲2.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 205 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Online Ordering System For Restaurants & Local Retail by Orderable
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲34 | 14.23 ▼0.11 | 1.82 ▼0.18 | 40.57 ▼3.52 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▲0.02 | 91.50 ▼3.12 | 42.83 ▲0.03 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.04 | 39.58 ▲0.37 | 37.56 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.11 ▲0.21 | 607.61 ▼62.43 | 52.90 ▼8.90 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.14 ▼0.03 | 96.10 ▼9.79 | 41.87 ▼1.15 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/orderable/inc/modules/location/templates/zones/delivery-zones-modal-add-update.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/orderable/templates/admin/orderable-pro-page.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-delivery-zone.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/orderable/inc/modules/layouts/templates/admin/layout-settings-metabox.php:7
- > PHP Notice
Undefined variable: zone in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-delivery-zone.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-delivery-zone.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-no-delivery-zones.php on line 9
- > PHP Notice
Undefined variable: time_slot_id in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-delivery-zone.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-delivery-zone-actions.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/orderable/inc/modules/location/templates/zones/time-slot-delivery-zone.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: local ordering, ecommerce, woocommerce, restaurants
orderable/orderable.php 92% from 13 tests
"Online Ordering System For Restaurants & Local Retail by Orderable" version 1.10.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.4.0")
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
There were no executable files found in this plugin35,623 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 24 | 2,788 | 1,912 | 12,268 |
PHP | 77 | 2,440 | 4,350 | 10,332 |
CSS | 26 | 1,244 | 361 | 8,207 |
JSON | 2 | 0 | 0 | 2,304 |
PO File | 3 | 770 | 881 | 1,919 |
Sass | 18 | 114 | 26 | 540 |
SVG | 6 | 0 | 0 | 35 |
XML | 1 | 5 | 4 | 18 |
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.38 |
Average class complexity | 23.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 53 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 485 | |
▷ Static methods | 393 | 81.03% |
▷ Public methods | 449 | 92.58% |
▷ Protected methods | 25 | 5.15% |
▷ Private methods | 11 | 2.27% |
Functions | 13 | |
▷ Named functions | 3 | 23.08% |
▷ Anonymous functions | 10 | 76.92% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendor/wp-settings-framework/assets/vendor/jquery-ui/images/ui-bg_inset-soft_30_f58400_1x100.png | 0.11KB | 0.18KB | 0.00% |
assets/img/upgrade-to-pro/star.png | 1.10KB | 0.59KB | ▼ 46.15% |
assets/img/upgrade-to-pro/header-blop.png | 5.54KB | 2.29KB | ▼ 58.63% |
assets/img/upgrade-to-pro/header-delivery.png | 88.00KB | 32.21KB | ▼ 63.39% |
inc/vendor/wp-settings-framework/assets/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |