Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.38ms] Passed 4 tests
Server-side resources used by Easy WP Voting With Payment
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 45.89 ▲3.14 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.12 ▼1.71 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.58 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 78.82 ▼25.90 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.24 ▲3.85 |
All Candidate /wp-admin/edit.php?post_type=ewvwp | 3.44 | 37.42 |
Settings /wp-admin/edit.php?post_type=ewvwp&page=ewvwp_plugin | 3.36 | 35.69 |
Contest Categories /wp-admin/edit-tags.php?taxonomy=ewvwp-category&post_type=ewvwp | 3.40 | 33.94 |
Add Candidate /wp-admin/post-new.php?post_type=ewvwp | 3.56 | 49.32 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy WP Voting With Payment: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,034 ▲299 | 14.13 ▼0.25 | 16.90 ▲15.05 | 38.85 ▼12.85 |
Dashboard /wp-admin | 2,248 ▲60 | 4.87 ▼0.96 | 108.73 ▲3.78 | 38.16 ▼3.77 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.00 ▼0.01 | 46.31 ▲5.46 | 42.15 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,574 ▲32 | 18.33 ▼0.09 | 625.39 ▲2.71 | 49.92 ▼14.37 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.32 ▲0.13 | 97.96 ▲0.07 | 43.26 ▼0.36 |
All Candidate /wp-admin/edit.php?post_type=ewvwp | 1,115 | 1.93 | 33.92 | 28.39 |
Settings /wp-admin/edit.php?post_type=ewvwp&page=ewvwp_plugin | 897 | 2.06 | 24.50 | 27.96 |
Contest Categories /wp-admin/edit-tags.php?taxonomy=ewvwp-category&post_type=ewvwp | 1,284 | 2.14 | 27.17 | 27.34 |
Add Candidate /wp-admin/post-new.php?post_type=ewvwp | 1,952 | 3.74 | 62.41 | 33.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-wp-voting-with-payment/easy-wp-voting-with-payment.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: loop in wp-content/plugins/easy-wp-voting-with-payment/templates/pages/theme_1.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/easy-wp-voting-with-payment/templates/pages/theme_1.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/easy-wp-voting-with-payment/templates/pages/theme_2.php:163
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-voting-with-payment/functions.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-wp-voting-with-payment/templates/easy-wp-voting.php:23
- > PHP Notice
Undefined variable: contest in wp-content/plugins/easy-wp-voting-with-payment/templates/easy-wp-voting.php on line 10
- > PHP Notice
Undefined variable: contest in wp-content/plugins/easy-wp-voting-with-payment/templates/easy-wp-voting.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-voting-with-payment/ajax.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/easy-wp-voting-with-payment/templates/admin.php:1
- > PHP Notice
Undefined variable: loop in wp-content/plugins/easy-wp-voting-with-payment/templates/pages/theme_2.php on line 163
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: payment, paystack, mastercard, visa, vote...
easy-wp-voting-with-payment/easy-wp-voting-with-payment.php Passed 13 tests
"Easy WP Voting With Payment" version 2.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Easy WP Voting With Payment allows you to create a simple voting system with payment method
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
Good job! No executable or dangerous file extensions detected2,732 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 8 | 8 | 1,042 |
PHP | 9 | 277 | 63 | 872 |
JavaScript | 3 | 243 | 205 | 818 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 23.63KB | 9.15KB | ▼ 61.26% |
assets/images/screenshot-2.png | 242.14KB | 69.79KB | ▼ 71.18% |