Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.99ms] Passed 4 tests
A check of server-side resources used by Parstools Star Rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.55 ▼6.20 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.78 ▲1.50 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.83 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.80 ▼9.29 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 42.22 ▲6.34 |
Parstools Star Rating /wp-admin/options-general.php?page=parstools_star_rating_options | 3.30 | 33.51 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 183 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Parstools Star Rating: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 14.73 ▲0.37 | 2.21 ▼0.18 | 42.65 ▼0.27 |
Dashboard /wp-admin | 2,226 ▲49 | 5.61 ▼0.06 | 86.37 ▼11.95 | 39.81 ▼2.50 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▲0.04 | 33.82 ▼2.26 | 37.26 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.04 ▼0.54 | 618.85 ▼41.55 | 43.83 ▼14.81 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.22 ▼0.06 | 96.51 ▼4.71 | 46.04 ▲2.54 |
Parstools Star Rating /wp-admin/options-general.php?page=parstools_star_rating_options | 1,386 | 2.30 | 27.84 | 170.79 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
parstools-star-rating/parstools-star-rating.php Passed 13 tests
The entry point to "Parstools Star Rating" version 1.0.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Add fancy star rating to any type of post and page with elegant themes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected586 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 140 | 461 | 456 |
PO File | 1 | 287 | 602 | 88 |
CSS | 1 | 10 | 4 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 77.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 22.58% |
Functions | 1 | |
▷ Named functions | 1 | 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
165 PNG files occupy 0.32MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/themes/32-3e.png | 2.08KB | 1.16KB | ▼ 44.21% |
admin/themes/7h.png | 1.43KB | 0.52KB | ▼ 63.36% |
admin/themes/24-6e.png | 1.82KB | 1.35KB | ▼ 26.11% |
admin/themes/32-8e.png | 1.87KB | 1.10KB | ▼ 41.27% |
admin/themes/5f.png | 1.28KB | 0.44KB | ▼ 65.77% |