Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼290.43ms] Passed 4 tests
An overview of server-side resources used by Universal Star Rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.23 | 56.95 ▲1.89 |
Dashboard /wp-admin | 3.57 ▲0.16 | 34.18 ▲0.57 |
Posts /wp-admin/edit.php | 3.81 ▲0.16 | 39.11 ▲2.53 |
Add New Post /wp-admin/post-new.php | 7.11 ▲0.14 | 94.71 ▼1,165.23 |
Media Library /wp-admin/upload.php | 3.52 ▲0.22 | 26.73 ▲1.04 |
Universal Star Rating /wp-admin/options-general.php?page=Universal-Star-Rating | 3.49 | 24.75 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- There were 6 files (0.00KB) illegally modified outside of "wp-content/plugins/universal-star-rating/" and "wp-content/uploads/"
- (new file) wp-content/cusri/80/.empty
- (new file) wp-content/cusri/40/.empty
- (new file) wp-content/cusri/20/.empty
- (new file) wp-content/cusri/60/.empty
- (new file) wp-content/cusri/100/.empty
- (new file) wp-content/cusri/189/.empty
Filesystem: 97 new files
Database: no new tables, 14 new options
New WordPress options |
---|
usrCalcAverage |
usrTextSize |
usrTextOutput |
usrImageSize |
usrVersion |
usrLang |
usrMaxRating |
usrTextAsTooltip |
usrTextModification |
usrImage |
... |
Browser metrics Passed 4 tests
Universal Star Rating: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲50 | 16.01 ▲0.02 | 7.13 ▲0.39 | 3.09 ▲0.88 |
Dashboard /wp-admin | 2,899 ▲41 | 6.09 ▼0.12 | 120.98 ▼13.95 | 157.81 ▼5.38 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.24 ▲0.01 | 62.48 ▼3.51 | 141.15 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,765 ▲126 | 22.14 ▲0.76 | 410.32 ▼1.30 | 157.30 ▲11.41 |
Media Library /wp-admin/upload.php | 1,699 ▲1 | 5.54 ▲0.03 | 138.05 ▲0.12 | 188.88 ▲3.39 |
Universal Star Rating /wp-admin/options-general.php?page=Universal-Star-Rating | 1,568 | 2.46 | 52.05 | 151.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 14 options in the database
- usrVersion
- usrTextOutput
- usrLang
- usrTextAsTooltip
- usrImageSize
- usrTextModification
- usrAllowInComments
- usrSchemaOrgType
- usrMaxRating
- usrTextSize
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/universal-star-rating/includes/image.php
- > /wp-content/plugins/universal-star-rating/includes/templates/settings.content.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/universal-star-rating/includes/templates/settings.content.preview.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universal-star-rating/includes/functions/func.addCSS.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/universal-star-rating/includes/functions/func.insertSingleRating.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universal-star-rating/includes/functions/func.initUsrAdmin.php:22
- > PHP Notice
Undefined variable: usr in wp-content/plugins/universal-star-rating/includes/templates/settings.headline.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/universal-star-rating/includes/templates/settings.content.description.php:20
- > PHP Notice
Undefined variable: usr in wp-content/plugins/universal-star-rating/includes/templates/settings.footer.php on line 15
- > PHP Notice
Undefined variable: activeTab in wp-content/plugins/universal-star-rating/includes/templates/settings.content.php on line 27
- > PHP Fatal error
Uncaught Error: Call to a member function getPluginName() on null in wp-content/plugins/universal-star-rating/includes/templates/settings.headline.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universal-star-rating/includes/functions/func.loadTextDomain.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: stars, shortcodes, books, rating, reviews...
universal-star-rating/universal-star-rating.php 92% from 13 tests
This is the main PHP file of "Universal Star Rating" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected9,506 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 7,688 |
PHP | 24 | 220 | 797 | 1,537 |
PO File | 1 | 54 | 74 | 169 |
CSS | 1 | 12 | 5 | 112 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 85 | 98.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.16% |
Functions | 13 | |
▷ Named functions | 13 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
66 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/100/06.png | 3.22KB | 2.33KB | ▼ 27.72% |
images/40/02.png | 1.77KB | 0.89KB | ▼ 49.45% |
images/60/02.png | 2.15KB | 1.17KB | ▼ 45.34% |
images/20/06.png | 1.01KB | 1.09KB | 0.00% |
images/100/09.png | 5.86KB | 5.01KB | ▼ 14.38% |