Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.34ms] Passed 4 tests
A check of server-side resources used by Simple Vote – Share your Thought, By A Like/Dislike Vote!
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.04 ▲0.33 |
Dashboard /wp-admin | 3.51 ▲0.21 | 52.72 ▲0.31 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 52.59 ▲4.99 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 90.89 ▼7.59 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.59 ▲1.59 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 22 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
section_alignment |
theysaidso_admin_options |
alert_font_style |
widget_theysaidso_widget |
alert_font_weight |
text_color |
dislike_bg_color |
post_titles |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Vote – Share your Thought, By A Like/Dislike Vote!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.54 ▼0.83 | 9.44 ▲7.71 | 42.95 ▲3.20 |
Dashboard /wp-admin | 2,215 ▲35 | 5.64 ▼0.00 | 96.63 ▲5.98 | 41.66 ▼4.22 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.06 ▲0.06 | 36.49 ▼2.17 | 36.48 ▼3.17 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,733 | 26.06 ▲2.89 | 869.73 ▲256.51 | 51.46 ▼1.66 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.30 ▲0.15 | 94.72 ▼9.61 | 41.88 ▼3.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 22 options
- section_padding
- widget_recent-posts
- alert_font_family
- alert_font_style
- dislike_color
- alert_font_weight
- text_color
- like_bg_color
- section_bg_color
- 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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-vote/public/partials/simple-vote-public-display.php
- > /wp-content/plugins/simple-vote/admin/partials/simple-vote-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Donate link: Invalid url: "www.presstigers.com"
simple-vote/simple-vote.php Passed 13 tests
The primary PHP file in "Simple Vote – Share your Thought, By A Like/Dislike Vote!" version 1.0.2 is used by WordPress to initiate all plugin functionality
135 characters long description:
The simplest and easiest to use voting plugin that lets you add liking and disliking buttons under your content with just a few clicks.
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
Good job! No executable or dangerous file extensions detected6,341 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 81 | 13 | 2,885 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 14 | 264 | 776 | 695 |
JavaScript | 2 | 20 | 12 | 90 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
Functions | 4 | |
▷ Named functions | 4 | 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
No PNG files were detected