Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.81ms] Passed 4 tests
Analyzing server-side resources used by Simple Comment Rating
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.06 ▲2.13 |
Dashboard /wp-admin | 3.41 ▲0.10 | 48.65 ▼5.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.32 ▼5.94 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.88 ▼9.60 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.35 ▲5.28 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Comment Rating
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▼0.16 | 1.86 ▼0.11 | 44.62 ▼1.43 |
Dashboard /wp-admin | 2,186 ▲6 | 5.54 ▼0.06 | 86.87 ▼8.80 | 40.77 ▼1.99 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.03 | 35.19 ▼1.53 | 33.41 ▼6.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.06 ▼0.37 | 694.92 ▲19.77 | 67.32 ▲14.32 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.02 | 97.18 ▼15.76 | 43.16 ▼2.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-comment-rating/controller/SettingsController.php
- > /wp-content/plugins/simple-comment-rating/classes/Constants.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-comment-rating/widgets/TopRatedCommentsWidget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-comment-rating/views/admin/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-comment-rating/plugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== simple-comment-rating ===
)
simple-comment-rating/plugin.php 85% from 13 tests
The principal PHP file in "Simple Comment Rating" v. 0.1 Alpha... is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-comment-rating.php" instead of "plugin.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "0.1 Alpha...")
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
Good job! No executable or dangerous file extensions detected626 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 155 | 17 | 452 |
CSS | 2 | 17 | 0 | 99 |
JavaScript | 2 | 24 | 1 | 54 |
PO File | 1 | 2 | 9 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 47 | 95.92% |
▷ Public methods | 41 | 83.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 16.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 4 | 14.29% |
▷ Class constants | 24 | 85.71% |
▷ Public constants | 24 | 100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/thumb_up.png | 0.95KB | 1.03KB | 0.00% |
styles/images/accept.png | 1.82KB | 1.62KB | ▼ 10.74% |
styles/images/thumb_down.png | 0.95KB | 1.04KB | 0.00% |
styles/images/thumb_up_disabled.png | 3.84KB | 1.13KB | ▼ 70.59% |
styles/images/thumb_down_disabled.png | 3.83KB | 1.11KB | ▼ 71.12% |