Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/yelp-reviews-ticker/yrt.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; yrtWidget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.60ms] Passed 4 tests
This is a short check of server-side resources used by Yelp Reviews Ticker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 6.42 ▼34.08 |
Dashboard /wp-admin | 2.18 ▼1.12 | 6.36 ▼41.87 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 5.63 ▼45.17 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.21 ▼97.26 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 5.77 ▼27.65 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_yrtwidget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Yelp Reviews Ticker: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.70 ▼0.92 | 5.02 ▲3.41 | 38.82 ▼8.77 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.99 | 98.58 ▼6.26 | 39.43 ▼5.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.02 | 38.30 ▼0.95 | 36.35 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.67 ▼0.46 | 625.16 ▼11.32 | 50.33 ▼22.74 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.01 | 96.11 ▼11.65 | 43.52 ▼6.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/yelp-reviews-ticker/yrt.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; yrtWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_yrtwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yelp-reviews-ticker/yrt.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
yelp-reviews-ticker/yrt.php 92% from 13 tests
The entry point to "Yelp Reviews Ticker" version 2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yelp-reviews-ticker.php" instead of "yrt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin554 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 50 | 64 | 315 |
CSS | 2 | 2 | 2 | 137 |
JavaScript | 1 | 0 | 5 | 102 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 14.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rating.png | 0.09KB | 0.09KB | 0.00% |
images/miniMapLogo.png | 0.69KB | 0.50KB | ▼ 26.92% |
images/yelp_logo_50x25.png | 87.57KB | 1.72KB | ▼ 98.04% |
images/stars_map.png | 7.42KB | 3.78KB | ▼ 49.03% |