Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.83MB] [CPU: ▲26.86ms] Passed 4 tests
This is a short check of server-side resources used by Rating Widget: Post Rating, 5 Star Rating, Reviews, Thumbs Up & Down, Reaction
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.26 ▲2.80 | 65.91 ▲26.14 |
Dashboard /wp-admin | 6.11 ▲2.80 | 84.12 ▲31.93 |
Posts /wp-admin/edit.php | 6.26 ▲2.91 | 79.05 ▲24.88 |
Add New Post /wp-admin/post-new.php | 8.81 ▲2.93 | 121.42 ▲24.50 |
Media Library /wp-admin/upload.php | 6.02 ▲2.80 | 86.17 ▲48.66 |
TotalRating /wp-admin/admin.php?page=totalrating | 6.17 | 69.26 |
Server storage [IO: ▲4.01MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 752 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_totalrating_widgets |
wp_totalrating_ratings |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
totalrating_options |
totalrating_tracking |
totalsuite_license |
theysaidso_admin_options |
totalrating_version |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rating Widget: Post Rating, 5 Star Rating, Reviews, Thumbs Up & Down, Reaction
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲107 | 13.26 ▼1.49 | 1.88 ▼0.04 | 43.54 ▼1.53 |
Dashboard /wp-admin | 2,274 ▲67 | 4.87 ▼0.03 | 105.05 ▼21.39 | 37.19 ▼18.50 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.00 ▼0.02 | 37.75 ▼0.98 | 37.74 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 22.70 ▲5.20 | 639.74 ▼16.52 | 57.05 ▼11.09 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.21 ▲0.01 | 108.39 ▼9.63 | 44.56 ▼5.48 |
Dashboard /wp-admin/admin.php?page=totalrating#/dashboard | 1,995 | 10.51 | 146.13 | 107.00 |
Options /wp-admin/admin.php?page=totalrating#/options | 1,411 | 10.73 | 156.86 | 48.51 |
Templates /wp-admin/admin.php?page=totalrating#/modules/template | 1,426 | 10.31 | 125.04 | 50.03 |
Support /wp-admin/admin.php?page=totalrating#/support | 2,012 | 10.59 | 152.68 | 131.75 |
Popup /wp-admin/admin.php?page=totalrating#/popup | 1,374 | 10.27 | 119.08 | 53.71 |
TotalRating /wp-admin/admin.php?page=totalrating | 1,992 | 10.46 | 120.96 | 121.22 |
License /wp-admin/admin.php?page=totalrating#/license | 2,021 | 10.80 | 139.86 | 75.48 |
Widgets /wp-admin/admin.php?page=totalrating#/widgets | 1,848 | 10.39 | 135.53 | 62.41 |
Extensions /wp-admin/admin.php?page=totalrating#/modules/extension | 1,402 | 10.31 | 135.87 | 49.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_totalrating_ratings
- wp_totalrating_widgets
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- totalsuite_license
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/totalrating/views/dashboard.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #3, #30, #31, #32, #33, #4, #5, #5, #6, #7, #8, #9 in totalrating/assets to your readme.txt
- Tags: There are too many tags (47 tag instead of maximum 10)
totalrating/plugin.php 62% from 13 tests
"Rating Widget: Post Rating, 5 Star Rating, Reviews, Thumbs Up & Down, Reaction" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8.0" instead of "4.8")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("totalrating.php" instead of "plugin.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin39,059 lines of code in 587 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 548 | 7,183 | 17,019 | 26,358 |
JavaScript | 10 | 1,148 | 3,136 | 10,560 |
JSON | 3 | 0 | 0 | 840 |
SVG | 18 | 0 | 0 | 716 |
CSS | 5 | 51 | 74 | 407 |
PO File | 1 | 50 | 67 | 130 |
SQL | 2 | 0 | 0 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 111 | |
Interfaces | 60 | |
Traits | 35 | |
Classes | 436 | |
▷ Abstract classes | 37 | 8.49% |
▷ Concrete classes | 399 | 91.51% |
▷ Final classes | 5 | 1.25% |
Methods | 2,418 | |
▷ Static methods | 168 | 6.95% |
▷ Public methods | 2,119 | 87.63% |
▷ Protected methods | 282 | 11.66% |
▷ Private methods | 17 | 0.70% |
Functions | 100 | |
▷ Named functions | 5 | 5.00% |
▷ Anonymous functions | 95 | 95.00% |
Constants | 165 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 165 | 100.00% |
▷ Public constants | 164 | 99.39% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.07MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/totalsuite-products.png | 54.63KB | 39.21KB | ▼ 28.23% |
modules/templates/DefaultTemplate/assets/module/icon.png | 9.91KB | 10.55KB | 0.00% |
modules/templates/DefaultTemplate/assets/module/cover.png | 6.04KB | 6.23KB | 0.00% |