Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼12.42ms] Passed 4 tests
This is a short check of server-side resources used by WPCafe Restaurant Addon for Oxygen Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 52.27 ▲8.20 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.72 ▼7.51 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.88 ▼4.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.77 ▼32.15 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.59 ▼5.27 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WPCafe Restaurant Addon for Oxygen Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.23 ▼1.28 | 1.82 ▲0.06 | 42.58 ▼1.57 |
Dashboard /wp-admin | 2,221 ▲15 | 5.77 ▲0.87 | 99.93 ▼14.39 | 40.25 ▲0.13 |
Posts /wp-admin/edit.php | 2,085 ▼15 | 2.00 ▼0.04 | 37.35 ▼2.81 | 37.52 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 17.66 ▼5.35 | 657.82 ▲61.38 | 52.41 ▲0.89 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.00 | 99.92 ▲2.94 | 43.75 ▲1.22 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/menu_slider_pro.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/menu_location_list_pro.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/reservation_form.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/reservation_form_pro.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/category_list_pro.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/food_menu_list_pro.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/food_location_filter.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/food_menu_loadmore.php:4
- > PHP Fatal error
Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/reservation_with_food.php:4
- > PHP Fatal error
Uncaught Error: Class 'OxyEl' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/oxy_wpcafe_el.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: editor, oxygen builder, restaurant, builder, food menu
wpcafe-oxygen-addon/wpcafe-oxygen-addon.php 92% from 13 tests
Analyzing the main PHP file in "WPCafe Restaurant Addon for Oxygen Builder" version 1.1.1
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,891 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 627 | 316 | 3,875 |
Sass | 1 | 1 | 0 | 10 |
CSS | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 113 | |
▷ Static methods | 14 | 12.39% |
▷ Public methods | 111 | 98.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.77% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected