Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-includes/plugin.php+1001
Undefined offset: 0
Server metrics [RAM: ▼1.85MB] [CPU: ▼54.34ms] Passed 4 tests
A check of server-side resources used by Kento Vote
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 4.67 ▼37.23 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.33 ▼42.63 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.56 ▼36.40 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.82 ▼101.09 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.71 ▼27.12 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_kento_vote |
wp_kento_vote_info |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Kento Vote
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.70 ▼0.70 | 5.03 ▲3.31 | 39.70 ▼4.04 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.05 | 95.96 ▼0.84 | 38.68 ▼3.47 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.03 ▼0.01 | 38.84 ▼1.43 | 35.63 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 18.22 ▼0.15 | 643.21 ▲42.07 | 56.79 ▼4.55 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▼0.00 | 99.98 ▲2.11 | 43.57 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the inkthemes handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_kento_vote
- wp_kento_vote_info
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
Good news, no errors were detected
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kento-vote/index.php:16
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Who Vote on post.), #2 (Vote With Down Vote.), #3 (Vote With UpVote.), #4 (Login Box .), #5 (Normal View.)
- Donate link: Invalid URI ("")
kento-vote/index.php 92% from 13 tests
Analyzing the main PHP file in "Kento Vote" version 1.2
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kento-vote.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected335 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 11 | 247 |
CSS | 1 | 25 | 1 | 87 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/kento-vote-up.png | 3.08KB | 0.21KB | ▼ 93.19% |
css/kento-vote-down.png | 3.09KB | 0.22KB | ▼ 92.83% |
screenshot-4.png | 30.30KB | 15.58KB | ▼ 48.59% |
screenshot-3.png | 43.44KB | 21.15KB | ▼ 51.32% |
screenshot-1.png | 61.00KB | 28.06KB | ▼ 54.00% |