Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.65ms] Passed 4 tests
Server-side resources used by Kento Star Rate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.73 ▲2.54 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.18 ▼3.28 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.76 ▲2.20 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.96 ▼14.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.64 ▲1.15 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_ksr_info |
wp_ksr |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Kento Star Rate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲234 | 13.88 ▼0.71 | 5.09 ▲3.37 | 38.63 ▼6.50 |
Dashboard /wp-admin | 2,248 ▲56 | 5.14 ▲0.23 | 111.33 ▲4.16 | 41.00 ▼9.85 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.30 ▲0.31 | 42.70 ▲0.90 | 35.30 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.46 ▲0.19 | 613.57 ▼45.23 | 34.27 ▼16.48 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.51 ▲0.30 | 98.63 ▲4.66 | 41.82 ▼0.14 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_ksr
- wp_ksr_info
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-star-rate/kento-star-rate-admin.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-star-rate/index.php:15
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-star-rate/index.php on line 15
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Add images for these screenshots: #1 (Already vote.), #2 (Custom Stars Design.), #3 (No Star Rate.), #4 (On Mouse Hover.), #5 (On Vote.), #6 (Unlimited Color.), #7 (Unlimited Star Size.), #8 (Setting.)
kento-star-rate/index.php 92% from 13 tests
The main file in "Kento Star Rate" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("kento-star-rate.php" instead of "index.php")
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
No dangerous file extensions were detected525 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 208 | 17 | 375 |
CSS | 1 | 2 | 5 | 106 |
JavaScript | 1 | 27 | 0 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
20 PNG files occupy 0.33MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/stars/star-5.png | 1.99KB | 1.52KB | ▼ 23.45% |
screenshot-3.png | 19.33KB | 8.14KB | ▼ 57.91% |
css/stars-bg/star-4.png | 4.16KB | 1.55KB | ▼ 62.71% |
screenshot-7.png | 44.58KB | 18.07KB | ▼ 59.47% |
css/stars-bg/star-3.png | 6.57KB | 2.43KB | ▼ 63.04% |