Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/like-dislike-plus-counter/index.php+41
Undefined variable: test_db_version
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.87ms] Passed 4 tests
A check of server-side resources used by Like dislike plus counter | Like Dislike Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.80 ▼2.97 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.63 ▼7.99 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.86 ▼6.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.16 ▼18.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.47 ▲4.08 |
Server storage [IO: ▲2.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 109 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_like_dislike_btn_details |
New WordPress options |
---|
db_upgraded |
test_db_version |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Like dislike plus counter | Like Dislike Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 7,702 ▲4,967 | 15.63 ▲1.25 | 7.07 ▲5.50 | 37.22 ▼3.22 |
Dashboard /wp-admin | 6,975 ▲4,790 | 5.42 ▲0.51 | 153.34 ▲44.87 | 37.52 ▼6.63 |
Posts /wp-admin/edit.php | 6,869 ▲4,780 | 2.83 ▲0.72 | 81.78 ▲46.01 | 32.57 ▲1.87 |
Add New Post /wp-admin/post-new.php | 3,921 ▲2,388 | 24.06 ▲0.77 | 718.97 ▲36.10 | 37.18 ▼22.67 |
Media Library /wp-admin/upload.php | 6,163 ▲4,775 | 4.53 ▲0.34 | 139.80 ▲30.45 | 44.77 ▼2.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_like_dislike_btn_details
- This plugin does not fully uninstall, leaving 7 options in the database
- test_db_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 no errors were found, this is by no means 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-dislike-plus-counter/admin/func.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-dislike-plus-counter/admin/admin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
like-dislike-plus-counter/index.php 92% from 13 tests
The primary PHP file in "Like dislike plus counter | Like Dislike Buttons" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("like-dislike-plus-counter.php" instead of "index.php")
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
There were no executable files found in this plugin18,912 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 558 | 46 | 7,611 |
SVG | 2 | 0 | 0 | 3,356 |
Sass | 16 | 38 | 37 | 3,238 |
LESS | 16 | 38 | 49 | 3,226 |
PHP | 3 | 114 | 86 | 670 |
JavaScript | 5 | 94 | 89 | 610 |
HTML | 1 | 80 | 47 | 201 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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 | 32 | |
▷ Named functions | 32 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/count2/btn-like.png | 8.10KB | 4.52KB | ▼ 44.24% |
assets/images/count13/back13.png | 3.05KB | 1.44KB | ▼ 52.77% |
assets/images/count21/back1.png | 9.14KB | 4.94KB | ▼ 45.88% |
admin/images/count1/imglike1.png | 8.26KB | 3.46KB | ▼ 58.11% |
admin/images/count13/back13.png | 3.05KB | 1.44KB | ▼ 52.77% |