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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼7.46ms] Passed 4 tests
An overview of server-side resources used by Comments Ratings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 36.89 ▼4.76 |
Dashboard /wp-admin | 3.59 ▲0.25 | 45.33 ▼14.11 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 47.94 ▼2.61 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 81.05 ▼8.34 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 36.67 ▲4.65 |
Comments Ratings /wp-admin/options-general.php?page=comments-ratings | 3.51 | 33.08 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
pixreviews_settings |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Comments Ratings
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 14.07 ▼0.30 | 5.83 ▲3.74 | 42.95 ▲1.43 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▲0.02 | 103.83 ▼10.43 | 39.96 ▼5.36 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.98 ▼0.07 | 36.34 ▼1.15 | 34.22 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.15 ▼0.14 | 631.38 ▼62.36 | 54.90 ▼3.49 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.19 ▼0.00 | 95.03 ▼5.69 | 40.36 ▼1.15 |
Comments Ratings /wp-admin/options-general.php?page=comments-ratings | 1,091 | 1.98 | 22.57 | 29.23 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- pixreviews_settings
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/comments-ratings/settings/labels.php:5
- > PHP Fatal error
Uncaught Error: Class 'pixreviews' not found in wp-content/plugins/comments-ratings/views/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/comments-ratings/core/defaults.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/comments-ratings/plugin-defaults.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/comments-ratings/settings/general.php:5
- > 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 96% from 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: reviews, comments, rating
comments-ratings/comments-ratings.php 92% from 13 tests
Analyzing the main PHP file in "Comments Ratings" version 1.1.7
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,336 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 489 | 1,039 | 1,510 |
JavaScript | 3 | 189 | 31 | 665 |
CSS | 2 | 11 | 1 | 74 |
Sass | 1 | 6 | 0 | 34 |
Markdown | 1 | 7 | 0 | 26 |
SVG | 1 | 0 | 0 | 15 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 32 | 23.36% |
▷ Public methods | 118 | 86.13% |
▷ Protected methods | 19 | 13.87% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star-on.png | 0.62KB | 0.61KB | ▼ 1.58% |
images/star-off.png | 0.67KB | 0.61KB | ▼ 9.05% |
images/cancel-on.png | 0.70KB | 0.72KB | 0.00% |
images/star-half.png | 0.65KB | 0.65KB | 0.00% |
images/default_radio_image.png | 2.62KB | 1.89KB | ▼ 27.94% |