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.19MB] [CPU: ▼141.95ms] Passed 4 tests
This is a short check of server-side resources used by Disqus Latest Comments Addon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 45.83 ▲20.78 |
Dashboard /wp-admin | 3.23 ▲0.18 | 56.60 ▼1.00 |
Posts /wp-admin/edit.php | 3.34 ▲0.24 | 41.15 ▼6.10 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 99.74 ▼562.45 |
Media Library /wp-admin/upload.php | 3.18 ▲0.17 | 37.02 ▲1.75 |
All Comments /wp-admin/edit-comments.php | 3.24 | 41.87 |
Disqus Latest Comments /wp-admin/edit-comments.php?page=disqus-latest-comments | 3.08 | 25.32 |
Disqus Latest Comments /wp-admin/options-general.php?page=itsg_disqus_lastest_comments | 3.14 | 34.59 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
itsg_disqus_lastest_comments_addon_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Disqus Latest Comments Addon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,743 ▲148 | 16.19 ▲0.73 | 10.32 ▲0.52 | 53.21 ▲4.18 |
Dashboard /wp-admin | 3,010 ▲76 | 5.86 ▼0.11 | 145.80 ▼14.16 | 120.70 ▲2.52 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.83 ▲0.02 | 72.13 ▼1.33 | 100.20 ▲9.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼65 | 18.47 ▼0.37 | 367.06 ▼32.54 | 113.60 ▲2.79 |
Media Library /wp-admin/upload.php | 1,850 ▲40 | 5.02 ▲0.03 | 148.00 ▼10.89 | 126.87 ▲0.10 |
All Comments /wp-admin/edit-comments.php | 2,463 | 2.87 | 68.04 | 105.32 |
Disqus Latest Comments /wp-admin/edit-comments.php?page=disqus-latest-comments | 1,451 | 2.48 | 63.44 | 83.59 |
Disqus Latest Comments /wp-admin/options-general.php?page=itsg_disqus_lastest_comments | 1,451 | 2.45 | 65.46 | 81.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- itsg_disqus_lastest_comments_addon_settings
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: disqus, recent, shortcode, comments, latest
disqus-latest-comments/disqus-latest-comments-addon.php 92% from 13 tests
The principal PHP file in "Disqus Latest Comments Addon" v. 2.3.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disqus-latest-comments.php" instead of "disqus-latest-comments-addon.php")
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 plugin901 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 206 | 95 | 784 |
CSS | 3 | 18 | 0 | 104 |
JavaScript | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 93.00 |
▷ Minimum class complexity | 93.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 80.56% |
▷ Protected methods | 7 | 19.44% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin