Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.49MB] [CPU: ▼5.17ms] Passed 4 tests
Analyzing server-side resources used by WP Zillow Review Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 45.29 ▲3.93 |
Dashboard /wp-admin | 3.82 ▲0.52 | 55.13 ▼3.54 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 52.31 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 91.06 ▼21.49 |
Media Library /wp-admin/upload.php | 3.68 ▲0.46 | 41.34 ▲4.50 |
Review List /wp-admin/admin.php?page=wp_zillow-reviews | 3.70 | 40.33 |
Get Zillow Reviews /wp-admin/admin.php?page=wp_zillow-get_zillow | 3.66 | 34.35 |
Templates /wp-admin/admin.php?page=wp_zillow-templates_posts | 3.83 | 36.97 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_wpzillow_post_templates |
wp_wpzillow_reviews |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
wprev_activated_time_zillow |
wp-zillow-review-slider_version |
widget_recent-comments |
can_compress_scripts |
wp-zillow-review-slider_current_db_version |
widget_wpzillow_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Zillow Review Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲223 | 13.44 ▼0.93 | 8.92 ▲7.29 | 44.96 ▲3.39 |
Dashboard /wp-admin | 2,273 ▲92 | 5.61 ▼0.22 | 86.48 ▼15.37 | 40.12 ▼4.92 |
Posts /wp-admin/edit.php | 2,136 ▲39 | 1.99 ▼0.01 | 37.77 ▲0.03 | 34.29 ▼4.82 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.58 ▲0.50 | 701.06 ▲18.96 | 59.30 ▲6.12 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.19 ▼0.02 | 105.81 ▲4.42 | 45.90 ▼0.40 |
Review List /wp-admin/admin.php?page=wp_zillow-reviews | 903 | 1.86 | 40.23 | 28.46 |
Get Zillow Reviews /wp-admin/admin.php?page=wp_zillow-get_zillow | 898 | 1.69 | 25.47 | 29.33 |
Templates /wp-admin/admin.php?page=wp_zillow-templates_posts | 2,027 | 3.15 | 78.08 | 32.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- wp-zillow-review-slider_current_db_version
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_zillow-get_zillow
- > Notice in wp-content/plugins/wp-zillow-review-slider/admin/class-wp-zillow-review-slider-admin.php+332
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-zillow-review-slider/public/partials/wp-zillow-review-slider-public-display-widget.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-zillow-review-slider/public/partials/wp-zillow-review-slider-public-display-widget.php on line 20
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-zillow-review-slider/public/partials/wp-zillow-review-slider-public-display.php:23
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-zillow-review-slider/public/partials/template_style_1.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-zillow-review-slider/admin/partials/get_zillow.php:16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-zillow-review-slider/public/partials/wp-zillow-review-slider-public-display.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-zillow-review-slider/admin/partials/review_list.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_query_arg() in wp-content/plugins/wp-zillow-review-slider/admin/partials/tabmenu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-zillow-review-slider/public/class-wp-zillow-review-slider-template_action.php:3
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-zillow-review-slider/public/partials/wp-zillow-review-slider-public-display.php on line 21
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-zillow-review-slider ===
)
wp-zillow-review-slider/wp-zillow-review-slider.php Passed 13 tests
"WP Zillow Review Slider" version 2.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
Allows you to easily display your Zillow 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,510 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 743 | 1,326 | 3,672 |
JavaScript | 8 | 314 | 671 | 1,371 |
CSS | 5 | 22 | 20 | 467 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.02 |
▷ 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 | 146 | |
▷ Static methods | 5 | 3.42% |
▷ Public methods | 118 | 80.82% |
▷ Protected methods | 16 | 10.96% |
▷ Private methods | 12 | 8.22% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 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 |
public/partials/imgs/stars_1.png | 6.56KB | 1.93KB | ▼ 70.57% |
public/partials/imgs/stars_4.png | 6.73KB | 1.87KB | ▼ 72.14% |
admin/partials/template3_thumb.png | 65.48KB | 18.84KB | ▼ 71.23% |
public/partials/imgs/stars_0.png | 6.46KB | 1.90KB | ▼ 70.51% |
admin/partials/logo.png | 16.21KB | 5.04KB | ▼ 68.90% |