Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.83ms] Passed 4 tests
Analyzing server-side resources used by Comments Like Dislike
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.49 ▼3.59 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.56 ▲1.88 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 54.48 ▲8.79 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.18 ▼3.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.53 ▼2.14 |
Comments Like Dislike /wp-admin/edit-comments.php?page=comments-like-dislike | 3.35 | 41.51 |
All Comments /wp-admin/edit-comments.php | 3.31 | 46.32 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cld_settings |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Comments Like Dislike
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,096 ▲350 | 15.63 ▲1.25 | 5.79 ▲4.06 | 38.86 ▼8.16 |
Dashboard /wp-admin | 2,385 ▲197 | 6.70 ▲0.84 | 139.15 ▲38.60 | 44.52 ▲5.64 |
Posts /wp-admin/edit.php | 2,294 ▲205 | 3.56 ▲1.55 | 56.99 ▲20.43 | 34.49 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,551 ▲13 | 17.69 ▼5.37 | 650.05 ▼35.20 | 38.38 ▼27.08 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.38 ▲0.19 | 81.08 ▼29.83 | 44.46 ▼2.46 |
Comments Like Dislike /wp-admin/edit-comments.php?page=comments-like-dislike | 2,038 | 8.89 | 202.65 | 59.28 |
All Comments /wp-admin/edit-comments.php | 2,017 | 3.81 | 49.68 | 32.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- cld_settings
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/comments-like-dislike/comments-like-dislike.php
- > /wp-content/plugins/comments-like-dislike/inc/views/backend/cld-metabox.php
- > /wp-content/plugins/comments-like-dislike/inc/classes/cld-activation.php
- > /wp-content/plugins/comments-like-dislike/inc/classes/cld-admin.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-like-dislike/inc/classes/cld-enqueue.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/comments-like-dislike/inc/views/frontend/dislike.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/comments-like-dislike/inc/views/backend/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/comments-like-dislike/inc/views/frontend/like.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/basic-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/about-us.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/design-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/comments-like-dislike/inc/classes/cld-library.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-like-dislike/inc/classes/cld-init.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit-comments.php?page=comments-like-dislike
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/edit-comments.php?page=comments-like-dislike
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: rating, like, comments, dislike, comment
comments-like-dislike/comments-like-dislike.php 92% from 13 tests
"Comments Like Dislike" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin10,280 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 2,375 | 44 | 5,115 |
SVG | 3 | 0 | 0 | 3,927 |
PHP | 19 | 151 | 449 | 1,018 |
JavaScript | 2 | 19 | 30 | 218 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin