Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-custom-voting/wp_customvote.php+140
Undefined index: process_wpcv
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.54ms] Passed 4 tests
Analyzing server-side resources used by WP Custom Voting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 6.03 ▼35.55 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.95 ▼42.62 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.30 ▼45.85 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.31 ▼90.12 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.54 ▼29.82 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Custom Voting
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 13.66 ▼0.63 | 9.50 ▲7.76 | 41.93 ▼1.22 |
Dashboard /wp-admin | 2,220 ▲29 | 5.82 ▲0.00 | 93.31 ▼7.13 | 71.04 ▲28.78 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 1.98 ▼0.15 | 33.84 ▼9.43 | 29.09 ▼6.45 |
Add New Post /wp-admin/post-new.php | 1,683 ▲169 | 22.74 ▲4.96 | 756.27 ▲73.33 | 53.09 ▼5.37 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.22 ▼0.09 | 96.18 ▼16.27 | 71.00 ▲24.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-custom-voting/wp_customvote.php+140
Undefined index: process_wpcv
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-custom-voting/wp_customvote.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #4 (screenshot-2.png Example of Frontend view.)
- Screenshots: Please describe screenshot #2 in wp-custom-voting/assets to your readme.txt
wp-custom-voting/wp_customvote.php 85% from 13 tests
"WP Custom Voting" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-custom-voting.php" instead of "wp_customvote.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 449 characters long)
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
No dangerous file extensions were detected355 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 19 | 282 |
CSS | 2 | 0 | 2 | 51 |
JavaScript | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons.png | 5.33KB | 1.80KB | ▼ 66.20% |
screenshot-1.png | 75.09KB | 31.31KB | ▼ 58.30% |
images/dmitri-logo.png | 8.50KB | 3.31KB | ▼ 61.05% |
screenshot-2.png | 29.92KB | 14.04KB | ▼ 53.06% |
images/icon.png | 3.44KB | 0.83KB | ▼ 75.87% |