Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.56ms] Passed 4 tests
A check of server-side resources used by Disqus Recent Comments Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.71 ▼2.57 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.51 ▲0.15 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 45.11 ▼2.34 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 83.48 ▼1.48 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.57 ▲2.32 |
Disqus Comments /wp-admin/options-general.php?page=disqus_rcw | 3.31 | 36.37 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_disqus_recent_comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Disqus Recent Comments Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.19 ▼1.10 | 1.67 ▼0.32 | 40.26 ▼2.26 |
Dashboard /wp-admin | 2,210 ▲25 | 4.88 ▼1.02 | 100.25 ▲0.02 | 39.11 ▼1.37 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.08 | 35.06 ▼4.73 | 32.05 ▼6.13 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.14 ▲0.14 | 656.57 ▲19.08 | 52.74 ▼12.38 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.02 | 94.75 ▼7.99 | 40.54 ▼1.05 |
Disqus Comments /wp-admin/options-general.php?page=disqus_rcw | 884 | 2.03 | 23.00 | 34.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_disqus_recent_comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 items
- 1× 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/disqus-recent-comments-widget/disqus_recent_comments_widget.php:13
- > PHP Fatal error
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: comments, sidebar, disqus, widget
disqus-recent-comments-widget/disqus_recent_comments_widget.php 92% from 13 tests
Analyzing the main PHP file in "Disqus Recent Comments Widget" version 1.2
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("disqus-recent-comments-widget.php" instead of "disqus_recent_comments_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin503 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 114 | 117 | 456 |
CSS | 1 | 13 | 1 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 70.00% |
▷ Protected methods | 9 | 30.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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 39.71KB | 15.97KB | ▼ 59.78% |
screenshot-2.png | 74.98KB | 33.98KB | ▼ 54.68% |