Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.83MB] [CPU: ▼50.82ms] Passed 4 tests
An overview of server-side resources used by Vote & Smiley Reaction
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.61 ▲4.08 |
Dashboard /wp-admin | 2.11 ▼1.19 | 9.25 ▼46.63 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 8.31 ▼43.50 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 8.48 ▼89.88 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 10.76 ▼23.25 |
Vote & Smiley Reaction /wp-admin/options-general.php?page=vote-smiley-reaction | 2.12 | 9.03 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rahularyan_reactions |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
rahularyan_vsr_opts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Vote & Smiley Reaction
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,031 ▲285 | 15.17 ▲0.82 | 6.00 ▲4.33 | 42.67 ▼1.62 |
Dashboard /wp-admin | 2,351 ▲163 | 6.41 ▲0.51 | 126.67 ▲21.59 | 37.40 ▼3.05 |
Posts /wp-admin/edit.php | 2,260 ▲171 | 3.36 ▲1.35 | 54.46 ▲17.23 | 32.14 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.03 ▲4.80 | 635.59 ▼14.15 | 36.50 ▼27.03 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.22 ▼0.07 | 92.86 ▼11.99 | 47.63 ▼1.35 |
Vote & Smiley Reaction /wp-admin/options-general.php?page=vote-smiley-reaction | 2,493 | 3.04 | 46.50 | 93.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-includes/link-template.php+49
Trying to get property 'use_trailing_slashes' of non-object
- Zombie tables detected upon uninstall: 1 table
- wp_rahularyan_reactions
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- rahularyan_vsr_opts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=vote-smiley-reaction
- > Notice in wp-includes/link-template.php+49
Trying to get property 'use_trailing_slashes' of non-object
- 84 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=vote-smiley-reaction
- > Warning in wp-content/plugins/vote-smiley-reaction/views/admin/reaction_type.php+67
in_array() expects parameter 2 to be array, bool given
- 30 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=vote-smiley-reaction
- > Notice in wp-content/plugins/vote-smiley-reaction/views/admin/reaction_type.php+43
Undefined index: required
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/vote-smiley-reaction/includes/db.php
- > /wp-content/plugins/vote-smiley-reaction/includes/admin.php
- > /wp-content/plugins/vote-smiley-reaction/includes/hooks.php
- > /wp-content/plugins/vote-smiley-reaction/includes/ajax.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: smiley, vote, reaction
vote-smiley-reaction/vote-smiley-reaction.php Passed 13 tests
The main file in "Vote & Smiley Reaction" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Add voting and smiley reaction in WordPress.
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 detected1,241 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 273 | 548 | 912 |
CSS | 2 | 2 | 0 | 151 |
JavaScript | 2 | 24 | 7 | 136 |
XML | 1 | 4 | 9 | 30 |
SVG | 12 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 4 | 80.00% |
Methods | 51 | |
▷ Static methods | 30 | 58.82% |
▷ Public methods | 40 | 78.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 21.57% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected