Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.56ms] Passed 4 tests
This is a short check of server-side resources used by Zaki Like Dislike Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.30 ▼4.81 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.77 ▲1.26 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.51 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.79 ▼19.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.62 ▼1.89 |
Zaki Plugins /wp-admin/admin.php?page=zaki | 3.25 | 26.96 |
Like Dislike Comments /wp-admin/admin.php?page=zaki-like-dislike | 3.25 | 29.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_zaki_like_dislike_comments |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
zaki_like_dislike_options |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Zaki Like Dislike Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.75 ▼0.64 | 5.17 ▲3.44 | 40.04 ▼4.06 |
Dashboard /wp-admin | 2,231 ▲46 | 5.83 ▲0.04 | 102.90 ▲3.24 | 78.34 ▲39.34 |
Posts /wp-admin/edit.php | 2,117 ▲31 | 2.03 ▲0.04 | 38.14 ▼0.07 | 34.35 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 23.24 ▲4.54 | 749.61 ▲138.47 | 58.34 ▲6.74 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.23 ▲0.03 | 106.30 ▲2.21 | 44.82 ▲0.46 |
Zaki Plugins /wp-admin/admin.php?page=zaki | 806 | 2.02 | 23.26 | 24.46 |
Like Dislike Comments /wp-admin/admin.php?page=zaki-like-dislike | 885 | 2.02 | 23.46 | 35.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- zaki_like_dislike_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=zaki
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ZakiPlugins::zakiPluginsMainPageHtml() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zaki-like-dislike
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zaki-like-dislike
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zaki-like-dislike-comments/zaki-like-dislike-comments.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zaki-like-dislike-comments/ajax/ajax-zaki-like-dislike.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zaki-like-dislike-comments/js/js-zaki-like-dislike.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: rate, vote, comments, dislike, posts...
zaki-like-dislike-comments/zaki-like-dislike-comments.php Passed 13 tests
The principal PHP file in "Zaki Like Dislike Comments" v. 1.2 is loaded by WordPress automatically on each request
46 characters long description:
Add a like / dislike rate system for comments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin462 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 82 | 47 | 442 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 17 | |
▷ Static methods | 15 | 88.24% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/down.png | 1.75KB | 1.45KB | ▼ 16.92% |
images/zaki-icon.png | 0.34KB | 0.31KB | ▼ 9.12% |
images/up.png | 1.78KB | 1.44KB | ▼ 18.87% |