Benchmarks
Plugin footprint 65% 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.10MB] [CPU: ▼2.30ms] Passed 4 tests
Analyzing server-side resources used by Review Stream
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.70 ▼4.07 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.54 ▼3.89 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.08 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 96.48 ▼1.11 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.31 ▼0.13 |
Review Stream /wp-admin/options-general.php?page=wprs_plugin | 3.31 | 36.56 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
reviewstream_active |
widget_theysaidso_widget |
theysaidso_admin_options |
reviewstream_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Review Stream: 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,812 ▲77 | 14.29 ▼0.27 | 1.73 ▼0.19 | 48.51 ▲10.57 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.06 | 107.14 ▼2.71 | 40.49 ▼5.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 38.98 ▼1.32 | 33.79 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,535 ▼8 | 23.11 ▲4.96 | 597.82 ▼30.10 | 61.79 ▲9.30 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.26 ▲0.03 | 98.59 ▼0.43 | 45.44 ▼0.51 |
Review Stream /wp-admin/options-general.php?page=wprs_plugin | 1,018 | 2.02 | 24.96 | 54.88 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ReviewStream::plugin_deactivation() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/review-stream/templates/wrapper_jsonld.php
- > /wp-content/plugins/review-stream/templates/aggregate_rating_jsonld.php
- > /wp-content/plugins/review-stream/templates/aggregate_rating_plain.php
- > /wp-content/plugins/review-stream/templates/review_jsonld.php
- > /wp-content/plugins/review-stream/templates/review_plain.php
- > /wp-content/plugins/review-stream/templates/wrapper_plain.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/review-stream/reviewstream.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/review-stream/templates/settings.php:4
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: reputation, reviews, seo
review-stream/reviewstream.php 92% from 13 tests
"Review Stream" version 1.6.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("review-stream.php" instead of "reviewstream.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin732 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 65 | 124 | 637 |
Markdown | 2 | 13 | 0 | 95 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 80.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin