Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/extraordinary-comments/exc-widget.php+17
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.75ms] Passed 4 tests
An overview of server-side resources used by Extraordinary Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.55 ▼37.45 |
Dashboard /wp-admin | 2.05 ▼1.25 | 4.93 ▼44.28 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 5.32 ▼44.99 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.83 | 5.08 ▼92.26 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.06 ▼27.06 |
Extraordinary Comments /wp-admin/options-general.php?page=cks_exc | 2.05 | 5.77 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_cks_exc |
cks_exc_version |
can_compress_scripts |
cks_exc_style |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
cks_exc_use_plugin_styles |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Extraordinary Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.67 ▼1.14 | 5.30 ▲3.56 | 38.80 ▼2.80 |
Dashboard /wp-admin | 2,227 ▲36 | 5.02 ▲0.17 | 109.54 ▲2.77 | 42.64 ▼0.89 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▲0.04 | 39.50 ▼3.25 | 35.07 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,549 ▲10 | 18.44 ▼4.73 | 604.76 ▼63.73 | 52.70 ▲1.62 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.29 ▲0.06 | 99.04 ▼3.96 | 41.05 ▼3.39 |
Extraordinary Comments /wp-admin/options-general.php?page=cks_exc | 1,309 | 2.03 | 28.60 | 84.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/extraordinary-comments/exc-widget.php+17
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_cks_exc
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=cks_exc
- > Deprecated in wp-content/plugins/extraordinary-comments/exc-widget.php+17
Function create_function() is deprecated
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
Almost there! Just fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/extraordinary-comments/exc-archive.php
- > /wp-content/plugins/extraordinary-comments/exc-settings.php
- > /wp-content/plugins/extraordinary-comments/extraordinary-comments.php
- > /wp-content/plugins/extraordinary-comments/exc-widget.php
- > /wp-content/plugins/extraordinary-comments/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: commenters, comments widget, recent comments, ck macleod, archive...
extraordinary-comments/extraordinary-comments.php 92% from 13 tests
"Extraordinary Comments" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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 plugin1,853 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 704 | 240 | 1,355 |
CSS | 4 | 14 | 35 | 458 |
JavaScript | 1 | 8 | 17 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blue_ribbon.png | 2.90KB | 1.81KB | ▼ 37.54% |
images/blue_ribbon_2.png | 4.02KB | 1.81KB | ▼ 54.92% |