Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.92MB] [CPU: ▼17.27ms] Passed 4 tests
This is a short check of server-side resources used by Restaurant & Cafe Addon for Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.44 | 33.99 ▼6.88 |
Dashboard /wp-admin | 8.93 ▲5.62 | 43.10 ▼6.81 |
Posts /wp-admin/edit.php | 8.93 ▲5.57 | 46.90 ▼1.31 |
Add New Post /wp-admin/post-new.php | 8.93 ▲3.04 | 43.80 ▼54.07 |
Media Library /wp-admin/upload.php | 8.93 ▲5.69 | 42.29 ▲7.71 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.93 | 38.56 |
Server storage [IO: ▲9.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 358 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
theysaidso_admin_options |
fs_accounts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
fs_active_plugins |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Restaurant & Cafe Addon for Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,052 ▲317 | 14.50 ▼0.08 | 21.15 ▲19.36 | 28.44 ▼13.85 |
Dashboard /wp-admin | 2,260 ▲72 | 5.89 ▲0.87 | 118.16 ▲11.84 | 90.01 ▲52.38 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.16 ▲0.14 | 39.99 ▼0.70 | 38.51 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 23.42 ▲0.32 | 684.64 ▲58.33 | 34.78 ▼18.75 |
Media Library /wp-admin/upload.php | 1,460 ▲78 | 4.29 ▲0.07 | 105.52 ▲5.38 | 79.73 ▲35.79 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,101 | 1.79 | 27.12 | 28.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/em-setup.php+158
Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
- widget_recent-comments
- fs_active_plugins
- fs_debug_mode
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/em-setup.php+158
Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
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
Please fix the following items
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/narep-admin-functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/basic/nabasic-chart.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/restaurant-unique/narestaurant-unique-rooms.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/restaurant-unique/narestaurant-unique-chefs-recipe.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/basic/nabasic-history.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/basic/nabasic-subscribe.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/basic/nabasic-contact.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/basic/nabasic-table.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/restaurant-cafe-addon-for-elementor/restaurant-cafe-addon-for-elementor.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/restaurant-cafe-addon-for-elementor/elementor/widgets/basic/nabasic-team-single.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
restaurant-cafe-addon-for-elementor/restaurant-cafe-addon-for-elementor.php 92% from 13 tests
The main PHP script in "Restaurant & Cafe Addon for Elementor" version 1.5.2 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected116,896 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 164 | 9,327 | 18,523 | 62,559 |
JavaScript | 44 | 7,092 | 7,435 | 31,206 |
CSS | 44 | 1,755 | 269 | 21,181 |
SVG | 11 | 8 | 0 | 1,947 |
JSON | 3 | 0 | 0 | 3 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 68.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 2 | 2.27% |
▷ Concrete classes | 86 | 97.73% |
▷ Final classes | 0 | 0.00% |
Methods | 1,499 | |
▷ Static methods | 205 | 13.68% |
▷ Public methods | 1,036 | 69.11% |
▷ Protected methods | 91 | 6.07% |
▷ Private methods | 372 | 24.82% |
Functions | 131 | |
▷ Named functions | 127 | 96.95% |
▷ Anonymous functions | 4 | 3.05% |
Constants | 149 | |
▷ Global constants | 100 | 67.11% |
▷ Class constants | 49 | 32.89% |
▷ Public constants | 49 | 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
13 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tables/chair.png | 34.92KB | 16.72KB | ▼ 52.12% |
assets/images/map-marker.png | 1.42KB | 0.41KB | ▼ 71.38% |
assets/images/tables/plate.png | 32.39KB | 20.33KB | ▼ 37.24% |
assets/images/map-bg.png | 9.03KB | 9.96KB | 0.00% |
assets/images/logo.png | 2.74KB | 2.20KB | ▼ 19.55% |