Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼35.10ms] Passed 4 tests
Analyzing server-side resources used by Online Ordering Plus Custom Branded Apps For Clover Merchants
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 60.98 ▲57.47 | 11,928,239.77 ▲11,928,190.91 |
Dashboard /wp-admin | 3.06 ▼0.29 | 25.47 ▼24.52 |
Posts /wp-admin/edit.php | 3.06 ▼0.34 | 24.75 ▼28.10 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.88 | 27.59 ▼74.78 |
Media Library /wp-admin/upload.php | 3.06 ▼0.22 | 28.49 ▼12.99 |
Clover POS Orders /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php | 3.06 | 25.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Online Ordering Plus Custom Branded Apps For Clover Merchants
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.12 | 1.85 ▼0.01 | 44.73 ▲4.47 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.04 | 90.36 ▼1.59 | 42.66 ▲1.40 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 33.93 ▼8.34 | 35.21 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.16 ▲0.02 | 629.17 ▲22.08 | 53.72 ▼0.08 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.22 ▲0.03 | 100.14 ▼1.05 | 43.39 ▼0.30 |
Clover POS Orders /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php | 859 | 1.99 | 23.30 | 27.06 |
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
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/orderem-online-ordering-for-clover/index.php+136
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php
- > Notice in wp-content/plugins/orderem-online-ordering-for-clover/index.php+78
Trying to access array offset on value of type bool
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/orderem-online-ordering-for-clover/index.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
orderem-online-ordering-for-clover/index.php 92% from 13 tests
This is the main PHP file of "Online Ordering Plus Custom Branded Apps For Clover Merchants" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("orderem-online-ordering-for-clover.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected125 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 28 | 125 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected