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.04MB] [CPU: ▼2.42ms] Passed 4 tests
Server-side resources used by Poll And Vote System
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.45 ▼10.64 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.41 ▲0.70 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 50.49 ▲0.64 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.36 ▲3.84 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.94 ▼0.38 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 36 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_pvs_votes |
wp_pvs_answer |
wp_pvs_question |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Poll And Vote System
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,122 ▲376 | 24.40 ▲9.65 | 39.39 ▲37.63 | 39.40 ▼7.13 |
Dashboard /wp-admin | 2,305 ▲117 | 11.84 ▲6.02 | 146.80 ▲45.47 | 43.61 ▲2.30 |
Posts /wp-admin/edit.php | 2,208 ▲119 | 10.70 ▲8.69 | 85.15 ▲44.44 | 34.38 ▼1.96 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,902 | 20.35 ▼2.88 | 774.08 ▲100.57 | 37.25 ▼27.25 |
Media Library /wp-admin/upload.php | 1,504 ▲113 | 10.99 ▲6.80 | 142.21 ▲38.48 | 42.26 ▼4.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_pvs_question
- wp_pvs_votes
- wp_pvs_answer
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined property: stdClass::$prefix in wp-content/plugins/poll-and-vote-system/poll-and-vote-system.php on line 35
- > PHP Warning
Creating default object from empty value in wp-content/plugins/poll-and-vote-system/poll-and-vote-system.php on line 34
- > PHP Notice
Undefined property: stdClass::$prefix in wp-content/plugins/poll-and-vote-system/poll-and-vote-system.php on line 36
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/poll-and-vote-system/poll-and-vote-system.php on line 34
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Add poll through shortcode.), #2 (Preview block editor.), #3 (Add poll.), #4 (Poll Documentation.)
poll-and-vote-system/poll-and-vote-system.php 92% from 13 tests
"Poll And Vote System" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected11,346 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1,804 | 50 | 9,962 |
PHP | 20 | 306 | 639 | 1,146 |
JavaScript | 5 | 25 | 30 | 237 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 6 | 9.52% |
▷ Public methods | 58 | 92.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.94% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin