Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲5.15MB] [CPU: ▲26.66ms] 75% from 4 tests
Server-side resources used by kk Star Ratings
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.15MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 93.44 ▲49.89 |
Dashboard /wp-admin | 8.91 ▲5.57 | 77.57 ▲12.64 |
Posts /wp-admin/edit.php | 8.91 ▲5.56 | 85.45 ▲35.50 |
Add New Post /wp-admin/post-new.php | 9.92 ▲4.03 | 120.67 ▲21.48 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 72.73 ▲37.03 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 62.91 |
Server storage [IO: ▲3.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 370 new files
Database: no new tables, 24 new options
New WordPress options |
---|
kksr_greet |
db_upgraded |
kksr_locations |
kksr_grs |
fs_accounts |
kksr_position |
kksr_migrations |
kksr_gap |
fs_active_plugins |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for kk Star Ratings
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.63 ▲0.35 | 1.91 ▼0.15 | 30.62 ▼12.79 |
Dashboard /wp-admin | 2,228 ▲51 | 5.54 ▼0.04 | 97.40 ▼1.65 | 46.74 ▲2.08 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.07 | 35.38 ▼2.17 | 34.77 ▼3.12 |
Add New Post /wp-admin/post-new.php | 6,294 ▲4,888 | 20.92 ▲3.07 | 860.77 ▲205.74 | 75.15 ▲22.39 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.20 ▼0.01 | 100.19 ▲0.81 | 44.02 ▲1.92 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,088 | 1.67 | 22.40 | 26.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/kk-star-ratings/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 24 options in the database
- widget_recent-posts
- kksr_enable
- widget_recent-comments
- fs_accounts
- kksr_stars
- fs_active_plugins
- widget_theysaidso_widget
- kksr_legend
- theysaidso_admin_options
- kksr_gap
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Bhittani\\StarRating\\functions\\autoload_class() in wp-content/plugins/kk-star-ratings/src/classes/Migration.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
10 plugin tags: unlimited stars, google rich snippets, ajax ratings, star ratings, rate posts...
kk-star-ratings/index.php 92% from 13 tests
The main file in "kk Star Ratings" v. 5.4.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kk-star-ratings.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin37,461 lines of code in 301 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 272 | 9,117 | 18,615 | 36,641 |
Markdown | 2 | 180 | 0 | 357 |
JavaScript | 9 | 70 | 83 | 352 |
CSS | 15 | 25 | 23 | 102 |
SVG | 3 | 0 | 0 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 88.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,274 | |
▷ Static methods | 197 | 15.46% |
▷ Public methods | 885 | 69.47% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 372 | 29.20% |
Functions | 257 | |
▷ Named functions | 231 | 89.88% |
▷ Anonymous functions | 26 | 10.12% |
Constants | 147 | |
▷ Global constants | 99 | 67.35% |
▷ Class constants | 48 | 32.65% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/kk-star-ratings.png | 9.16KB | 5.26KB | ▼ 42.58% |