Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼2.14ms] Passed 4 tests
Server-side resources used by WP Voting Contest Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 51.61 ▲13.24 |
Dashboard /wp-admin | 4.32 ▲1.01 | 59.83 ▲11.41 |
Posts /wp-admin/edit.php | 4.35 ▲0.99 | 61.43 ▲14.24 |
Add New Post /wp-admin/post-new.php | 4.12 ▼1.77 | 47.48 ▼47.45 |
Media Library /wp-admin/upload.php | 4.24 ▲1.01 | 51.42 ▲16.18 |
Voting Logs /wp-admin/admin.php?page=wpvc_votinglogs | 4.16 | 46.46 |
Settings /wp-admin/admin.php?page=wpvc_settings | 4.16 | 46.08 |
/wp-admin/index.php?page=votes-setup | 4.04 | 39.24 |
Overview /wp-admin/admin.php?page=contestants | 4.16 | 45.52 |
Upgrade to PRO /wp-admin/admin.php?page=wpvc_upgrade | 4.16 | 46.17 |
Custom Fields /wp-admin/admin.php?page=wpvc_custom_fields | 4.16 | 45.59 |
Contestants /wp-admin/edit.php?post_type=contestants | 4.27 | 53.43 |
Migrate Voting /wp-admin/admin.php?page=wpvc_migration | 4.16 | 43.43 |
Contest Category /wp-admin/admin.php?page=wpvc_category | 4.16 | 44.52 |
Add Contestant /wp-admin/post-new.php?post_type=contestants | 4.47 | 64.20 |
Server storage [IO: ▲7.08MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_votes_custom_registeration_contestant |
wp_votes_post_contestant_track |
wp_votes_custom_field_contestant |
wp_votes_tbl |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
wpvc_votes_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Voting Contest Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲301 | 23.01 ▲8.75 | 45.41 ▲43.71 | 42.34 ▼1.82 |
Dashboard /wp-admin | 2,272 ▲98 | 10.09 ▲4.52 | 147.81 ▲44.81 | 56.10 ▲10.41 |
Posts /wp-admin/edit.php | 2,189 ▲89 | 7.69 ▲5.73 | 77.52 ▲38.45 | 49.55 ▲10.84 |
Add New Post /wp-admin/post-new.php | 1,586 ▲60 | 26.18 ▲3.03 | 794.37 ▲60.40 | 56.78 ▲5.52 |
Media Library /wp-admin/upload.php | 1,483 ▲86 | 8.71 ▲4.53 | 143.90 ▲43.01 | 50.96 ▲6.41 |
Voting Logs /wp-admin/admin.php?page=wpvc_votinglogs | 922 | 8.45 | 129.34 | 62.33 |
Settings /wp-admin/admin.php?page=wpvc_settings | 1,017 | 7.95 | 111.85 | 50.05 |
/wp-admin/index.php?page=votes-setup | 28 | 0.41 | 0.08 | 4.11 |
Overview /wp-admin/admin.php?page=contestants | 1,314 | 9.39 | 138.55 | 52.28 |
Upgrade to PRO /wp-admin/admin.php?page=wpvc_upgrade | 1,045 | 8.59 | 145.96 | 51.60 |
Custom Fields /wp-admin/admin.php?page=wpvc_custom_fields | 1,219 | 8.24 | 109.67 | 55.62 |
Contestants /wp-admin/edit.php?post_type=contestants | 1,281 | 7.95 | 108.50 | 53.32 |
Migrate Voting /wp-admin/admin.php?page=wpvc_migration | 989 | 8.17 | 123.59 | 44.66 |
Contest Category /wp-admin/admin.php?page=wpvc_category | 992 | 9.69 | 140.79 | 41.48 |
Add Contestant /wp-admin/post-new.php?post_type=contestants | 2,351 | 10.92 | 266.81 | 85.34 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_votes_custom_field_contestant
- wp_votes_custom_registeration_contestant
- wp_votes_post_contestant_track
- wp_votes_tbl
- The uninstall procedure has failed, leaving 7 options in the database
- wpvc_votes_settings
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-voting-contest/wpvc_email/emailbutton.php
- > /wp-content/plugins/wp-voting-contest/wpvc_email/email.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WPVC_VOTES_ABSPATH - assumed 'WPVC_VOTES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 6
- > PHP Warning
Use of undefined constant WPVC_VOTES_ABSPATH - assumed 'WPVC_VOTES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 7
- > PHP Warning
Use of undefined constant WPVC_VOTES_SL_PLUGIN_URL - assumed 'WPVC_VOTES_SL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 13
- > PHP Warning
Use of undefined constant WPVC_VOTES_SL_PLUGIN_URL - assumed 'WPVC_VOTES_SL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 11
- > PHP Warning
Use of undefined constant WPVC_VOTES_ABSPATH - assumed 'WPVC_VOTES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 8
- > PHP Warning
Use of undefined constant WPVC_VOTES_SL_PLUGIN_URL - assumed 'WPVC_VOTES_SL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-voting-contest/configuration/helper.php:12
- > PHP Warning
Use of undefined constant WPVC_VOTES_ABSPATH - assumed 'WPVC_VOTES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-voting-contest/wpvc_views/frontend/wpvc_contestants_single_view.php:2
- > PHP Warning
Use of undefined constant WPVC_VOTES_ABSPATH - assumed 'WPVC_VOTES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-voting-contest/configuration/config.php on line 10
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/index.php?page=votes-setup
- > Network (severe)
wp-admin/index.php?page=votes-setup - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=wpvc_upgrade
- > Network (severe)
index.php/wp-content/plugins/wp-voting-contest/assets/images/photo_contest_01.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=contestants
- > Console-api (severe) in unknown
/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:53544 TypeError: Cannot read properties of null (reading 'value')at l.componentDidMount (/wp-content/plugins/wp-voting-contest/wpvc_views/build/admin.js?ver=5.3:1:266616)at Jr (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80714)at Zr (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80489)at Gr (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80023)at /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:91526at xl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:92039)at fl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85808)at Nn (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:32474)at pl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:86103)at /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:99392
- > GET request to /wp-admin/post-new.php?post_type=contestants
- > Javascript (severe) in unknown
/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:32518 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Grid View of the Image Contest with vote button, vote count and Social media links.), #2 (List View of the Image Contest with vote button, vote count and Social media links.), #3 (Single Contestant View of the Image Contest with vote button, vote count and Social media links.)
wp-voting-contest/ow_votes.php 85% from 13 tests
"WP Voting Contest Lite" version 5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-voting-contest.php" instead of "ow_votes.php")
Code Analysis 97% from 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 detected9,948 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 805 | 1,515 | 7,559 |
CSS | 4 | 71 | 23 | 1,039 |
JSON | 1 | 0 | 0 | 802 |
SVG | 1 | 0 | 0 | 520 |
JavaScript | 5 | 7 | 2 | 28 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 4 | 12.12% |
▷ Concrete classes | 29 | 87.88% |
▷ Final classes | 0 | 0.00% |
Methods | 303 | |
▷ Static methods | 110 | 36.30% |
▷ Public methods | 269 | 88.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 34 | 11.22% |
Functions | 29 | |
▷ Named functions | 27 | 93.10% |
▷ Anonymous functions | 2 | 6.90% |
Constants | 65 | |
▷ Global constants | 57 | 87.69% |
▷ Class constants | 8 | 12.31% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.90MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/google_sign.png | 1.40KB | 1.10KB | ▼ 21.35% |
assets/images/fb_sign_in.png | 0.55KB | 0.38KB | ▼ 31.31% |
assets/images/img_not_available.png | 38.09KB | 24.62KB | ▼ 35.38% |
screenshot-1.png | 992.78KB | 272.54KB | ▼ 72.55% |
assets/images/twitter_sign_in.png | 0.86KB | 0.65KB | ▼ 24.18% |