Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-postvoting/wp_postvoting.php+260
Methods with the same name as their class will not be constructors in a future version of PHP; wppvTopVotedWidget has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼49.78ms] Passed 4 tests
A check of server-side resources used by WP PostVoting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.18 | 7.97 ▼30.68 |
Dashboard /wp-admin | 2.30 ▼1.04 | 10.50 ▼49.95 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 10.58 ▼33.73 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 9.84 ▼84.76 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 8.72 ▼25.31 |
WP PostVoting /wp-admin/options-general.php?page=wp-postvoting/admin_setup.php | 2.30 | 11.22 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_wppvtopvotedwidget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WP PostVoting: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.21 ▼0.18 | 1.55 ▼0.04 | 38.27 ▼6.84 |
Dashboard /wp-admin | 2,192 ▲23 | 5.53 ▼0.18 | 92.29 ▼9.52 | 42.43 ▲2.71 |
Posts /wp-admin/edit.php | 2,136 ▲39 | 1.98 ▼0.03 | 38.64 ▲2.33 | 42.98 ▲8.08 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.29 ▲0.26 | 670.23 ▲51.16 | 52.41 ▼0.84 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.17 ▲0.02 | 94.69 ▼4.25 | 39.84 ▼1.37 |
WP PostVoting /wp-admin/options-general.php?page=wp-postvoting/admin_setup.php | 1,026 | 2.02 | 27.13 | 36.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wppvTopVotedWidget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_wppvtopvotedwidget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-postvoting/admin_setup.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wppvTopVotedWidget is deprecated since version 4.3.0! Use __construct() instead.
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-postvoting/admin_setup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-postvoting/wp_postvoting.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-postvoting/admin-setup.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (WP PostVoting configurations.), #2 (Lists of all voted posts.), #3 (WP PostVoting widget settings.), #4 (WP PostVoting widget displaying.), #5 (Display WP PostVoting at front end.)
wp-postvoting/wp_postvoting.php 92% from 13 tests
The entry point to "WP PostVoting" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-postvoting.php" instead of "wp_postvoting.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin827 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 20 | 714 |
CSS | 3 | 2 | 3 | 81 |
JavaScript | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 5.87KB | 5.82KB | ▼ 0.73% |
screenshot-2.png | 11.13KB | 7.76KB | ▼ 30.33% |
images/thumbs-up.png | 1.74KB | 1.43KB | ▼ 18.16% |
screenshot-4.png | 5.22KB | 5.16KB | ▼ 1.03% |
screenshot-3.png | 4.30KB | 4.25KB | ▼ 1.27% |