Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.17MB] [CPU: ▼158.35ms] Passed 4 tests
Server-side resources used by Like DisLike Voting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.04 | 24.27 ▼8.89 |
Dashboard /wp-admin | 3.11 ▲0.06 | 44.22 ▲0.16 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 44.34 ▼2.75 |
Add New Post /wp-admin/post-new.php | 4.70 ▼0.73 | 57.82 ▼617.60 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.43 ▼4.15 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Like DisLike Voting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲125 | 15.94 ▼0.01 | 9.50 ▼0.22 | 48.01 ▼3.72 |
Dashboard /wp-admin | 2,987 ▲53 | 6.05 ▲0.06 | 131.91 ▼10.16 | 112.33 ▼2.63 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.02 | 69.49 ▲0.85 | 87.87 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,685 ▼187 | 19.09 ▼0.12 | 385.00 ▲7.05 | 107.51 ▲1.30 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.03 ▲0.01 | 143.75 ▼4.40 | 123.77 ▲2.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-dislike-voting/files/like.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-dislike-voting/files/options.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/like-dislike-voting/files/function.php:118
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-dislike-voting/files/session.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-dislike-voting/files/session.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Frontend sidebar column), #2 (admin widget column), #3 (Pro screenshot)
- Tags: There are too many tags (16 tag instead of maximum 10)
like-dislike-voting/index.php 85% from 13 tests
The main file in "Like DisLike Voting" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("like-dislike-voting.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin337 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 54 | 16 | 308 |
CSS | 1 | 9 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/unlike.png | 34.38KB | 8.31KB | ▼ 75.83% |
img/like.png | 19.08KB | 7.49KB | ▼ 60.73% |
img/unlike_done.png | 34.38KB | 8.31KB | ▼ 75.83% |
img/like_done.png | 19.08KB | 7.49KB | ▼ 60.73% |