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.06MB] [CPU: ▼3.99ms] Passed 4 tests
This is a short check of server-side resources used by DX Unanswered Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 44.27 ▲3.13 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.83 ▲3.34 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.62 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.76 ▼11.19 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.65 ▼3.90 |
DX Unanswered Comments /wp-admin/options-general.php?page=dx-unanswered-comments | 3.26 | 33.21 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
DX Unanswered Comments: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.25 ▼0.10 | 2.05 ▼0.72 | 45.80 ▼3.14 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.04 | 88.83 ▲0.10 | 40.99 ▼3.50 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.00 | 36.34 ▼4.02 | 36.41 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.20 ▼0.16 | 636.99 ▲26.46 | 50.12 ▲1.92 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.22 ▲0.04 | 102.30 ▼0.66 | 43.30 ▲0.79 |
DX Unanswered Comments /wp-admin/options-general.php?page=dx-unanswered-comments | 801 | 2.02 | 23.64 | 25.20 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dx-unanswered-comments/dxuc-unanswered-comments-admin-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dx-unanswered-comments/dxuc-unanswered-comments.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dx-unanswered-comments/inc/dxuc-add-comment-count-top.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were 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
4 plugin tags: unanswered, admin, replies, comments
dx-unanswered-comments/dxuc-unanswered-comments.php 92% from 13 tests
This is the main PHP file of "DX Unanswered Comments" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dx-unanswered-comments.php" instead of "dxuc-unanswered-comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected380 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 84 | 114 | 275 |
JavaScript | 2 | 0 | 0 | 41 |
PO File | 1 | 8 | 0 | 36 |
Markdown | 1 | 9 | 0 | 24 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 4 | 22.22% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 37.37KB | 16.99KB | ▼ 54.53% |
screenshot-1.png | 88.25KB | 35.41KB | ▼ 59.87% |