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.03MB] [CPU: ▼285.45ms] Passed 4 tests
A check of server-side resources used by Featured Comment Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 28.21 ▲8.39 |
Dashboard /wp-admin | 3.09 ▲0.04 | 40.24 ▼4.98 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 34.21 ▼8.03 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 92.22 ▼1,122.25 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 31.65 ▼6.55 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_featuredcomment |
Browser metrics Passed 4 tests
Checking browser requirements for Featured Comment Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,652 ▲70 | 15.84 ▲0.24 | 7.73 ▼0.39 | 47.92 ▲3.66 |
Dashboard /wp-admin | 2,931 ▲81 | 5.89 ▲0.09 | 134.24 ▼12.77 | 104.25 ▼8.27 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.01 | 68.55 ▲1.68 | 92.02 ▲9.53 |
Add New Post /wp-admin/post-new.php | 1,479 ▼177 | 16.89 ▲0.10 | 348.79 ▼92.48 | 112.42 ▼24.35 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.03 ▲0.02 | 164.49 ▲19.90 | 119.61 ▼7.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_featuredcomment
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)
Everything seems fine, however this is by no means 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-comment-widget/featured-comment-widget.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Finding the comment ID to enter into your widget form.), #2 (Finding the comment ID in the Dashboard.), #3 (The Featured Comment Widget form.), #4 (This is what the widget looks like if you're using the Twenty Ten theme by WordPress.), #5 (This is what the widget looks like on a custom themed blog, with the comments excerpted at approximately 95 characters.), #6 (This is what the widget looks like on Twenty Thirteen, with multiple (3) comments showing up at once.)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== featured-comment-widget ===
)
featured-comment-widget/featured-comment-widget.php 92% from 13 tests
This is the main PHP file of "Featured Comment Widget" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 188 characters long)
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
There were no executable files found in this plugin105 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 23 | 105 |
PHP code Passed 2 tests
Analyzing 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.19 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 11.98KB | 4.82KB | ▼ 59.77% |
screenshot-5.png | 21.00KB | 6.96KB | ▼ 66.84% |
screenshot-3.png | 35.20KB | 10.51KB | ▼ 70.13% |
screenshot-6.png | 40.97KB | 11.38KB | ▼ 72.22% |
screenshot-1.png | 70.01KB | 25.06KB | ▼ 64.21% |