Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.62ms] Passed 4 tests
An overview of server-side resources used by Flipdish Ordering System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.81 ▼3.62 |
Dashboard /wp-admin | 3.41 ▲0.06 | 49.32 ▼15.58 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.79 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 103.92 ▲7.34 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.63 ▼2.90 |
Flipdish /wp-admin/admin.php?page=flipdish-ordering | 3.31 | 32.60 |
Preview /wp-admin/admin.php?page=Preview | 3.30 | 32.66 |
System Info /wp-admin/admin.php?page=flipdish-system-info | 3.35 | 35.43 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options |
---|
flipdish_ordering_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
FLIPDISH_ORDERING_VERSION |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Flipdish Ordering System
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.45 ▲0.08 | 1.70 ▼0.15 | 36.66 ▼7.71 |
Dashboard /wp-admin | 2,235 ▲50 | 4.88 ▼0.97 | 95.10 ▼22.89 | 63.82 ▲20.90 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 1.98 ▼0.03 | 37.61 ▲1.15 | 34.61 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 17.57 ▼5.65 | 641.89 ▼31.58 | 54.32 ▲1.49 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.23 ▲0.00 | 109.27 ▲14.20 | 75.05 ▲29.68 |
Flipdish /wp-admin/admin.php?page=flipdish-ordering | 976 | 2.08 | 24.95 | 32.41 |
Preview /wp-admin/admin.php?page=Preview | 806 | 2.02 | 23.66 | 25.75 |
System Info /wp-admin/admin.php?page=flipdish-system-info | 1,342 | 2.06 | 24.56 | 28.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/flipdish-ordering-system/includes/banners/ct-de.php
- > /wp-content/plugins/flipdish-ordering-system/includes/flipdish-ordering-transparent-styles.php
- > /wp-content/plugins/flipdish-ordering-system/includes/banners/ct-us.php
- > /wp-content/plugins/flipdish-ordering-system/includes/banners/ct-uk-ie.php
- > /wp-content/plugins/flipdish-ordering-system/includes/banners/ct-es.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/flipdish-ordering-system/admin/settings/configuration.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/flipdish-ordering-system/admin/settings/payments.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/flipdish-ordering-system/admin/settings/display.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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: collection, takeaway, flipdish, online ordering, delivery
flipdish-ordering-system/flipdish-ordering.php 85% from 13 tests
The principal PHP file in "Flipdish Ordering System" v. 1.4.16 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("flipdish-ordering-system.php" instead of "flipdish-ordering.php")
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
Good job! No executable or dangerous file extensions detected903 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 345 | 214 | 803 |
CSS | 3 | 12 | 23 | 62 |
JavaScript | 1 | 3 | 3 | 26 |
HTML | 4 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 9.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 25.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 75.00% |
Functions | 30 | |
▷ Named functions | 30 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.81MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 680.20KB | 173.07KB | ▼ 74.56% |
admin/images/flipdish_header_large.png | 22.59KB | 11.58KB | ▼ 48.72% |
assets/screenshot-3.png | 38.27KB | 15.11KB | ▼ 60.52% |
assets/screenshot-1.png | 84.57KB | 43.77KB | ▼ 48.25% |
admin/images/flipdish_icon_small.png | 5.84KB | 0.71KB | ▼ 87.79% |