Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/extended-comments-widget/extended-comments-widget.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; Extended_Comments_Widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼190.87ms] Passed 4 tests
A check of server-side resources used by Extended Comments Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.92 | 8.36 ▼22.16 |
Dashboard /wp-admin | 1.82 ▼1.24 | 6.07 ▼44.43 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 6.45 ▼40.46 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 5.53 ▼645.92 |
Media Library /wp-admin/upload.php | 1.82 ▼1.18 | 5.68 ▼32.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_extended-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Extended Comments Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.76 ▲0.36 | 10.25 ▼0.85 | 52.17 ▼19.59 |
Dashboard /wp-admin | 2,973 ▲39 | 5.88 ▼0.21 | 143.89 ▼34.87 | 118.55 ▼12.18 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.82 ▼0.01 | 72.81 ▲2.71 | 95.91 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.55 ▲0.69 | 392.17 ▲9.45 | 112.07 ▼14.54 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▼0.01 | 153.84 ▼17.49 | 126.29 ▲6.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/extended-comments-widget/extended-comments-widget.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; Extended_Comments_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_extended-comments
Smoke tests 75% 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 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/extended-comments-widget/extended-comments-widget.php:11
- > 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 93% from 29 tests
readme.txt 88% 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 need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== extended-comments-widget ===
) - Screenshots: Screenshot #1 (Example screenshot) image missing
extended-comments-widget/extended-comments-widget.php Passed 13 tests
The entry point to "Extended Comments Widget" version 0.1.1 is a PHP file that has certain tags in its header comment area
115 characters long description:
A widget that shows a section of comment text along with the author name. Can exclude certain authors from the list
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
Everything looks great! No dangerous files found in this plugin77 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 29 | 77 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.02KB | 5.64KB | ▼ 74.39% |