Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.97ms] Passed 4 tests
This is a short check of server-side resources used by Reviews Block for Yelp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.27 ▼0.41 |
Dashboard /wp-admin | 3.39 ▲0.09 | 43.35 ▼1.98 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.33 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 91.48 ▼0.66 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.69 ▲2.74 |
Yelp Reviews /wp-admin/options-general.php?page=yelp_widget | 3.29 | 32.14 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reviews Block for Yelp
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.35 ▼0.00 | 1.74 ▲0.18 | 43.60 ▲2.40 |
Dashboard /wp-admin | 2,196 ▲16 | 5.51 ▼0.14 | 82.19 ▼2.94 | 37.75 ▼6.28 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.02 | 35.17 ▲1.30 | 32.67 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,845 | 28.40 ▲5.52 | 916.91 ▲242.00 | 40.36 ▼16.05 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.01 | 94.16 ▼15.06 | 46.16 ▲1.37 |
Yelp Reviews /wp-admin/options-general.php?page=yelp_widget | 959 | 1.67 | 24.71 | 36.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yelp-widget-pro/src/class-yelp-widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yelp-widget-pro/src/admin-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/yelp-widget-pro/yelp-widget-pro.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yelp-widget-pro/src/block/serverside.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yelp-widget-pro/src/plugin-listing-page.php:175
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: reviews, yelp reviews, yelp block, yelp
yelp-widget-pro/yelp-widget-pro.php Passed 13 tests
Analyzing the main PHP file in "Reviews Block for Yelp" version 3.0.0
93 characters long description:
Easily display Yelp business reviews and ratings with a simple and intuitive WordPress block.
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
Good job! No executable or dangerous file extensions detected3,960 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 10 | 276 | 23 | 1,338 |
JavaScript | 18 | 129 | 90 | 1,325 |
PHP | 9 | 255 | 321 | 1,113 |
SVG | 5 | 1 | 1 | 102 |
JSON | 3 | 0 | 0 | 78 |
CSS | 4 | 0 | 0 | 4 |
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.30 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 16.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
50 PNG files occupy 0.65MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/stars/regular_1.png | 0.79KB | 0.63KB | ▼ 20.52% |
assets/images/blank-biz.png | 1.07KB | 0.81KB | ▼ 24.77% |
assets/images/stars/regular_4.png | 0.80KB | 0.63KB | ▼ 20.95% |
assets/images/stars/regular_5@3x.png | 1.94KB | 1.08KB | ▼ 44.24% |
assets/images/stars/regular_5.png | 0.56KB | 0.39KB | ▼ 29.17% |