Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼5.88ms] Passed 4 tests
Analyzing server-side resources used by WP Yelp Review Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 44.41 ▲8.13 |
Dashboard /wp-admin | 3.85 ▲0.51 | 51.59 ▼8.47 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 44.66 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 82.23 ▼19.31 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 38.07 ▲3.15 |
Get Yelp Reviews /wp-admin/admin.php?page=wp_yelp-get_yelp | 3.69 | 37.73 |
Templates /wp-admin/admin.php?page=wp_yelp-templates_posts | 3.94 | 34.55 |
Review List /wp-admin/admin.php?page=wp_yelp-reviews | 3.74 | 33.85 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 65 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_wpyelp_post_templates |
wp_wpyelp_reviews |
New WordPress options |
---|
wp-yelp-review-slider_version |
wprev_activated_time_yelp |
widget_recent-posts |
wp-yelp-review-slider_current_db_version |
widget_theysaidso_widget |
widget_wpyelp_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Yelp Review Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲223 | 13.47 ▲0.21 | 9.70 ▲8.13 | 43.35 ▲2.96 |
Dashboard /wp-admin | 2,273 ▲96 | 5.54 ▼0.14 | 99.31 ▲16.03 | 41.94 ▼0.71 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.99 ▼0.02 | 33.81 ▼0.60 | 32.25 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 23.30 ▲0.15 | 649.20 ▲31.69 | 61.65 ▲5.16 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.15 ▼0.12 | 101.24 ▲4.13 | 44.91 ▲0.22 |
Get Yelp Reviews /wp-admin/admin.php?page=wp_yelp-get_yelp | 905 | 1.70 | 27.15 | 26.68 |
Templates /wp-admin/admin.php?page=wp_yelp-templates_posts | 2,062 | 3.17 | 71.69 | 26.86 |
Review List /wp-admin/admin.php?page=wp_yelp-reviews | 955 | 1.86 | 34.10 | 25.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- wp-yelp-review-slider_current_db_version
- can_compress_scripts
Smoke tests 50% 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_yelp-get_yelp
- > Notice in wp-content/plugins/wp-yelp-review-slider/admin/class-wp-yelp-review-slider-admin.php+320
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_query_arg() in wp-content/plugins/wp-yelp-review-slider/admin/partials/tabmenu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-yelp-review-slider/admin/partials/review_list.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-yelp-review-slider/public/partials/wp-yelp-review-slider-public-display.php on line 21
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-yelp-review-slider/public/partials/wp-yelp-review-slider-public-display.php:23
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-yelp-review-slider/public/partials/wp-yelp-review-slider-public-display-widget.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-yelp-review-slider/public/partials/wp-yelp-review-slider-public-display-widget.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-yelp-review-slider/admin/partials/get_yelp.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-yelp-review-slider/public/class-wp-yelp-review-slider-widget.php:6
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-yelp-review-slider/public/partials/wp-yelp-review-slider-public-display.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-yelp-review-slider/public/partials/template_style_1.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-yelp-review-slider ===
)
wp-yelp-review-slider/wp-yelp-review-slider.php Passed 13 tests
The principal PHP file in "WP Yelp Review Slider" v. 7.3 is loaded by WordPress automatically on each request
100 characters long description:
Allows you to easily display your Yelp Business Page reviews in your Posts, Pages, and Widget areas.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,719 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 783 | 1,437 | 3,852 |
JavaScript | 9 | 320 | 674 | 1,403 |
CSS | 5 | 21 | 20 | 464 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 45.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 5 | 3.40% |
▷ Public methods | 123 | 83.67% |
▷ Protected methods | 16 | 10.88% |
▷ Private methods | 8 | 5.44% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 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
20 PNG files occupy 0.30MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/template2_thumb.png | 26.88KB | 9.18KB | ▼ 65.86% |
admin/partials/icon-128x128.png | 18.30KB | 2.65KB | ▼ 85.54% |
public/partials/imgs/yelp_stars_3.png | 4.11KB | 1.38KB | ▼ 66.32% |
public/partials/imgs/yelp_stars_4.png | 4.14KB | 1.34KB | ▼ 67.60% |
public/partials/imgs/yelp_stars_2.5.png | 4.37KB | 1.61KB | ▼ 63.05% |