Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼5.06ms] Passed 4 tests
Server-side resources used by Disqus Comment System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 41.96 ▲4.23 |
Dashboard /wp-admin | 3.59 ▲0.25 | 46.13 ▼9.67 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 46.58 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 82.80 ▼15.20 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.87 ▲3.69 |
All Comments /wp-admin/edit-comments.php | 3.52 | 39.75 |
Server storage [IO: ▲6.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
disqus_sync_token |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Disqus Comment System: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.21 ▼1.17 | 1.77 ▼0.12 | 44.12 ▲1.35 |
Dashboard /wp-admin | 2,217 ▲68 | 5.86 ▲0.31 | 99.58 ▼0.93 | 42.26 ▲3.41 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.04 | 33.40 ▼3.18 | 35.24 ▲3.06 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.40 ▲0.17 | 670.44 ▲73.72 | 64.15 ▲21.03 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.21 ▼0.07 | 97.36 ▲0.61 | 41.98 ▼4.19 |
All Comments /wp-admin/edit-comments.php | 1,799 | 2.29 | 33.90 | 34.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/disqus-comment-system/public/partials/disqus-public-sso-login-profile.php
- > /wp-content/plugins/disqus-comment-system/admin/partials/disqus-admin-partial.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/disqus-comment-system/public/partials/disqus-public-display.php:16
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
disqus-comment-system/disqus.php 77% from 13 tests
"Disqus Comment System" version 3.0.23's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("disqus-comment-system.php" instead of "disqus.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
Good job! No executable or dangerous file extensions detected46,848 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 8,641 | 7,093 | 45,514 |
PHP | 13 | 293 | 973 | 1,217 |
CSS | 1 | 26 | 5 | 117 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 5 | 6.76% |
▷ Public methods | 46 | 62.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 28 | 37.84% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
There were not PNG files found in your plugin