Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-review-restaurant/wp-review-restaurant.php+59
Function create_function() is deprecated
Server metrics [RAM: ▼1.80MB] [CPU: ▼197.42ms] Passed 4 tests
Analyzing server-side resources used by WP Review Restaurant
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.92 | 5.40 ▼18.42 |
Dashboard /wp-admin | 1.85 ▼1.21 | 5.43 ▼48.23 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 6.47 ▼45.29 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.58 | 6.09 ▼665.43 |
Media Library /wp-admin/upload.php | 1.85 ▼1.15 | 5.53 ▼30.74 |
Add New /wp-admin/post-new.php?post_type=restaurant_listing | 1.85 | 6.35 |
Locations /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type_location&post_type=restaurant_listing | 1.85 | 5.65 |
Additional Options /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type_advanced&post_type=restaurant_listing | 1.85 | 7.10 |
Restaurant Types /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type&post_type=restaurant_listing | 1.85 | 9.29 |
All Restaurant Listings /wp-admin/edit.php?post_type=restaurant_listing | 1.85 | 5.22 |
Cuisine Types /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type_cuisine&post_type=restaurant_listing | 1.85 | 5.88 |
Settings /wp-admin/edit.php?post_type=restaurant_listing&page=review-restaurant-settings | 1.85 | 4.59 |
Server storage [IO: ▲0.76MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 156 new files
Database: no new tables, 24 new options
New WordPress options |
---|
restaurant_listing_type_children |
review_restaurant_restaurant_type_6_color |
review_restaurant_restaurant_type_4_color |
review_restaurant_allowed_application_method |
review_restaurant_submission_requires_approval |
review_restaurant_user_requires_account |
review_restaurant_registration_role |
widget_widget_recent_restaurants |
review_restaurant_restaurant_type_5_color |
review_restaurant_hide_filled_positions |
... |
Browser metrics Passed 4 tests
WP Review Restaurant: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲177 | 15.88 ▲0.01 | 11.76 ▲0.96 | 53.73 ▼7.16 |
Dashboard /wp-admin | 3,032 ▲98 | 5.93 ▼0.07 | 147.21 ▼22.51 | 112.64 ▼10.05 |
Posts /wp-admin/edit.php | 2,801 ▲65 | 2.72 ▲0.02 | 66.62 ▼5.00 | 101.63 ▲5.94 |
Add New Post /wp-admin/post-new.php | 1,916 ▲233 | 19.16 ▲0.39 | 414.94 ▼7.02 | 121.01 ▼11.68 |
Media Library /wp-admin/upload.php | 1,869 ▲62 | 5.02 ▼0.03 | 170.50 ▲13.13 | 124.13 ▼2.50 |
Add New /wp-admin/post-new.php?post_type=restaurant_listing | 4,622 | 8.93 | 263.04 | 180.38 |
Locations /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type_location&post_type=restaurant_listing | 2,129 | 2.42 | 72.23 | 96.15 |
Additional Options /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type_advanced&post_type=restaurant_listing | 2,479 | 2.53 | 67.02 | 101.53 |
Restaurant Types /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type&post_type=restaurant_listing | 2,199 | 2.40 | 71.66 | 100.86 |
All Restaurant Listings /wp-admin/edit.php?post_type=restaurant_listing | 1,614 | 2.71 | 74.21 | 90.23 |
Cuisine Types /wp-admin/edit-tags.php?taxonomy=restaurant_listing_type_cuisine&post_type=restaurant_listing | 2,129 | 2.42 | 71.95 | 99.18 |
Settings /wp-admin/edit.php?post_type=restaurant_listing&page=review-restaurant-settings | 2,660 | 3.27 | 107.53 | 69.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-review-restaurant/wp-review-restaurant.php+59
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 24 options
- wp_review_restaurant_version
- review_restaurant_restaurant_type_what_color
- review_restaurant_per_page
- review_restaurant_registration_role
- review_restaurant_installed_terms
- review_restaurant_restaurant_type_6_color
- review_restaurant_allowed_application_method
- review_restaurant_restaurant_type_7_color
- review_restaurant_restaurant_type_3_color
- review_restaurant_hide_filled_positions
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 16 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=restaurant_listing&page=review-restaurant-settings
- > Deprecated in wp-content/plugins/wp-review-restaurant/wp-review-restaurant.php+66
Function create_function() is deprecated
SRP 50% 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
The following issues need your attention
- 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-review-restaurant/trunk/templates/form-fields/file-field.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_restaurant_application_method() in wp-content/plugins/wp-review-restaurant/trunk/templates/restaurant-application.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-review-restaurant/trunk/templates/restaurant-submitted.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-review-restaurant/trunk/templates/form-fields/text-field.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function restaurant_listing_class() in wp-content/plugins/wp-review-restaurant/trunk/templates/content-widget-restaurant_listing.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-review-restaurant/templates/restaurant-dashboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-review-restaurant/templates/restaurant-submitted.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-review-restaurant/templates/restaurant-application-url.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-review-restaurant/templates/restaurant-application-email.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-review-restaurant/templates/restaurant-filters.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=restaurant_listing
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=restaurant_listing 624:34 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% 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
4 plugin tags: restaurant, restaurants, restaurant listing, restaurant board
wp-review-restaurant/wp-review-restaurant.php 92% from 13 tests
The principal PHP file in "WP Review Restaurant" v. 1.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,627 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 915 | 1,145 | 3,845 |
LESS | 5 | 50 | 7 | 1,181 |
JavaScript | 12 | 61 | 46 | 353 |
JSON | 1 | 0 | 0 | 202 |
SVG | 1 | 0 | 0 | 43 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 22.62 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 2 | 4.76% |
▷ Concrete classes | 40 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 290 | |
▷ Static methods | 88 | 30.34% |
▷ Public methods | 254 | 87.59% |
▷ Protected methods | 22 | 7.59% |
▷ Private methods | 14 | 4.83% |
Functions | 80 | |
▷ Named functions | 80 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/assets/images/restaurant.png | 8.09KB | 1.75KB | ▼ 78.35% |
assets/images/restaurant.png | 8.09KB | 1.75KB | ▼ 78.35% |