Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/unfiltered-yelp-reviews/yelpreview.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; YelpReview has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.73ms] Passed 4 tests
An overview of server-side resources used by unFiltered
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.59 ▼38.90 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.36 ▼42.72 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.36 ▼44.37 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.70 ▼80.93 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.26 ▼28.15 |
Reviews /wp-admin/edit.php?post_type=reviews | 2.10 | 5.50 |
New Review /wp-admin/post-new.php?post_type=reviews | 2.10 | 6.02 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_yelpreview |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for unFiltered
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.84 ▲0.49 | 1.76 ▲0.01 | 47.24 ▼0.98 |
Dashboard /wp-admin | 2,217 ▲29 | 5.88 ▲0.98 | 113.93 ▼1.91 | 83.02 ▲35.77 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.04 ▲0.08 | 34.39 ▼4.36 | 31.58 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,691 ▲157 | 21.93 ▼1.25 | 688.53 ▲18.64 | 53.83 ▼3.58 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.19 ▼0.01 | 109.43 ▲3.60 | 46.19 ▲0.17 |
Reviews /wp-admin/edit.php?post_type=reviews | 1,081 | 1.96 | 30.84 | 31.97 |
New Review /wp-admin/post-new.php?post_type=reviews | 1,431 | 2.51 | 49.32 | 59.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/unfiltered-yelp-reviews/yelpreview.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; YelpReview has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_yelpreview
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Deprecated in wp-content/plugins/unfiltered-yelp-reviews/yelpreview.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; YelpReview has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/yelpreview.php+18
Trying to get property 'ID' of non-object
- 33 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/yelpreview.php+29
Trying to access array offset on value of type bool
- 33 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/yelpreview.php+29
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in YelpReview is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+68
Trying to get property 'post_type' of non-object
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+129
Undefined index: yelpcss
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+130
Undefined index: reviewid
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+131
Undefined index: reviewdate
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+132
Undefined index: reviewstars
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+133
Undefined index: reviewcomment
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+135
Undefined index: reviewerid
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+136
Undefined index: reviewerpic
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+137
Undefined index: reviewername
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+138
Undefined index: reviewerfriends
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+139
Undefined index: reviewerreviews
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+140
Undefined index: reviewercity
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+56
Undefined variable: post_ID
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+55
Undefined variable: post
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/unfiltered-yelp-reviews/review_type.php+55
Trying to get property 'post_date' of non-object
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Warning in wp-admin/includes/template.php+1443
call_user_func() expects parameter 1 to be a valid callback, function 'reviews_metadata' not found or invalid function name
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/unfiltered-yelp-reviews/themefiles/single-reviews.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unfiltered-yelp-reviews/review_type.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/unfiltered-yelp-reviews/single-reviews.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unfiltered-yelp-reviews/review_type.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Facebook & Google Plus Integration), #2 (Install in any widget area), #3 (Admin functionality), #4 (Easy to use just cut and paste a few urls (user img and reviewer url) from each review you would like to post)
unfiltered-yelp-reviews/yelpreview.php 77% from 13 tests
The main file in "unFiltered" v. v1.0... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 686 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("unfiltered-yelp-reviews.php" instead of "yelpreview.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "v1.0...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected456 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 47 | 419 |
CSS | 1 | 2 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Named functions | 9 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.58MB with 1.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 190.88KB | 69.36KB | ▼ 63.66% |
Screenshot4.png | 199.95KB | 71.55KB | ▼ 64.22% |
Screenshot2.png | 219.71KB | 79.53KB | ▼ 63.80% |
screenshot-2.png | 219.71KB | 79.53KB | ▼ 63.80% |
Screenshot3.png | 190.88KB | 69.36KB | ▼ 63.66% |