Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼5.30ms] Passed 4 tests
Analyzing server-side resources used by WPSSO Ratings and Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 37.78 ▲0.63 |
Dashboard /wp-admin | 3.58 ▲0.23 | 45.60 ▼19.50 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.45 ▲3.79 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 84.88 ▼4.38 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.46 ▲2.07 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPSSO Ratings and Reviews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.35 ▲0.07 | 1.71 ▲0.15 | 38.75 ▼4.02 |
Dashboard /wp-admin | 2,204 ▲30 | 5.62 ▲0.10 | 93.93 ▼10.53 | 41.56 ▼2.05 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.14 ▲0.13 | 43.24 ▲6.98 | 37.30 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.29 ▼0.27 | 658.71 ▼20.26 | 53.50 ▲0.21 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▼0.04 | 102.25 ▲5.96 | 42.82 ▲2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/filters-messages.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/uninstall.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/script.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/submenu/ratings-reviews.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/config.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/register.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/admin.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/comment.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/abstract/com/add-on.php
- > /wp-content/plugins/wpsso-ratings-and-reviews/lib/abstract/add-on.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: product ratings, aggregate rating, product reviews, woocommerce, schema review...
wpsso-ratings-and-reviews/wpsso-ratings-and-reviews.php Passed 13 tests
The principal PHP file in "WPSSO Ratings and Reviews" v. 3.0.0 is loaded by WordPress automatically on each request
97 characters long description:
Ratings and Reviews for WordPress Comments with Schema Aggregate Rating and Schema Review Markup.
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 detected1,516 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 648 | 323 | 1,197 |
PO File | 1 | 37 | 38 | 108 |
CSS | 2 | 12 | 0 | 73 |
JavaScript | 4 | 41 | 19 | 65 |
Markdown | 1 | 23 | 0 | 43 |
HTML | 2 | 32 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 28 | 37.33% |
▷ Public methods | 60 | 80.00% |
▷ Protected methods | 5 | 6.67% |
▷ Private methods | 10 | 13.33% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-128x128.png | 12.29KB | 5.71KB | ▼ 53.53% |
images/icon-256x256.png | 30.35KB | 12.91KB | ▼ 57.48% |