Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.72ms] Passed 4 tests
This is a short check of server-side resources used by Easy Restaurant Menus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.60 ▼0.18 |
Dashboard /wp-admin | 3.39 ▲0.04 | 50.17 ▼7.40 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.83 ▲0.76 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 100.01 ▲6.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.11 ▲3.95 |
Restaurant Menus /wp-admin/edit.php?post_type=restaurantmenu | 3.35 | 34.89 |
Add New /wp-admin/post-new.php?post_type=restaurantmenu | 3.36 | 44.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Restaurant Menus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.17 ▼1.11 | 1.74 ▲0.15 | 43.12 ▲6.61 |
Dashboard /wp-admin | 2,236 ▲53 | 5.81 ▲0.88 | 99.14 ▼9.80 | 40.81 ▼2.14 |
Posts /wp-admin/edit.php | 2,119 ▲48 | 2.01 ▲0.00 | 40.06 ▲4.38 | 36.46 ▲5.15 |
Add New Post /wp-admin/post-new.php | 1,572 ▲58 | 23.00 ▲5.39 | 591.94 ▼59.14 | 56.32 ▼5.49 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.24 ▲0.02 | 95.20 ▼65.75 | 44.02 ▼11.84 |
Restaurant Menus /wp-admin/edit.php?post_type=restaurantmenu | 1,083 | 1.99 | 33.23 | 28.27 |
Add New /wp-admin/post-new.php?post_type=restaurantmenu | 1,766 | 3.54 | 60.74 | 35.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/easy-restaurant-menus/erm.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function epv\\add_action() in wp-content/plugins/easy-restaurant-menus/admin/class-settings.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=restaurantmenu
- > Javascript (severe) in unknown
/wp-content/plugins/easy-restaurant-menus/admin/script.js 1:0 Uncaught TypeError: $ is not a function
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
3 plugin tags: food, menus, tags restaurant
easy-restaurant-menus/erm.php 85% from 13 tests
The principal PHP file in "Easy Restaurant Menus" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-restaurant-menus.php" instead of "erm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected429 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 50 | 354 |
JavaScript | 2 | 25 | 31 | 75 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected