Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.84MB] [CPU: ▼49.61ms] Passed 4 tests
Server-side resources used by Onlinemenukaart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.59 ▼36.76 |
Dashboard /wp-admin | 2.16 ▼1.14 | 6.48 ▼39.61 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 5.32 ▼40.98 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.32 ▼81.10 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 5.63 ▼25.59 |
Server storage [IO: ▲0.50MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 183 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Onlinemenukaart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.17 ▼1.58 | 1.74 ▲0.12 | 41.33 ▼1.53 |
Dashboard /wp-admin | 2,260 ▲71 | 5.83 ▲0.90 | 97.84 ▼20.25 | 37.95 ▼2.37 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.04 ▲0.06 | 39.12 ▼1.93 | 34.35 ▼1.26 |
Add New Post /wp-admin/post-new.php | 6,433 ▲4,919 | 20.77 ▲3.19 | 924.92 ▲248.16 | 54.32 ▼15.52 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.16 ▼0.03 | 98.24 ▼14.72 | 44.40 ▼5.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the onlinemenukaart handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/onlinemenukaart/views/shortcodes/menucard.blade.php
- > /wp-content/plugins/onlinemenukaart/views/settings.blade.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Renderable' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/View/View.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheException' not found in wp-content/plugins/onlinemenukaart/vendor/psr/simple-cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Container\\Container' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/Foundation/Application.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/onlinemenukaart/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Broadcasting\\ShouldBroadcast' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/Broadcasting/ShouldBroadcastNow.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/container/EntryNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Validation\\Rule' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/Validation/ImplicitRule.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/Support/MessageBag.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Bus\\Dispatcher' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/Bus/QueueingDispatcher.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/onlinemenukaart/vendor/illuminate/contracts/Cache/Repository.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
onlinemenukaart/onlinemenukaart.php Passed 13 tests
The primary PHP file in "Onlinemenukaart" version 0.1.0 is used by WordPress to initiate all plugin functionality
48 characters long description:
Integreer Onlinemenukaart met je Wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin6,839 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 1,435 | 6,095 | 5,509 |
Markdown | 10 | 237 | 0 | 599 |
JSON | 6 | 0 | 0 | 442 |
JavaScript | 4 | 21 | 16 | 165 |
SVG | 1 | 1 | 0 | 48 |
Blade | 2 | 3 | 0 | 35 |
Sass | 3 | 3 | 1 | 34 |
CSS | 3 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 102 | |
Traits | 6 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 912 | |
▷ Static methods | 29 | 3.18% |
▷ Public methods | 720 | 78.95% |
▷ Protected methods | 178 | 19.52% |
▷ Private methods | 14 | 1.54% |
Functions | 35 | |
▷ Named functions | 1 | 2.86% |
▷ Anonymous functions | 34 | 97.14% |
Constants | 16 | |
▷ Global constants | 2 | 12.50% |
▷ Class constants | 14 | 87.50% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin