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
Installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼0.92ms] Passed 4 tests
An overview of server-side resources used by Disqus Conditional Load
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 43.06 ▼2.75 |
Dashboard /wp-admin | 3.70 ▲0.40 | 54.38 ▼2.22 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 53.27 ▲0.41 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 101.64 ▲0.88 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 39.92 ▲4.69 |
DCL Settings /wp-admin/admin.php?page=dcl-settings | 3.57 | 37.76 |
Disqus /wp-admin/admin.php?page=disqus | 3.53 | 37.80 |
All Comments /wp-admin/edit-comments.php | 3.69 | 45.77 |
Server storage [IO: ▲6.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
disqus_sync_token |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
dcl_gnrl_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Disqus Conditional Load
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.26 ▼0.02 | 1.83 ▼0.01 | 40.26 ▼3.90 |
Dashboard /wp-admin | 2,208 ▲31 | 5.65 ▲0.07 | 90.68 ▼9.79 | 43.42 ▼1.00 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.95 ▼0.04 | 41.33 ▲4.00 | 36.59 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.17 ▲0.08 | 634.42 ▲5.10 | 58.90 ▼3.04 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.25 ▲0.05 | 97.48 ▼4.96 | 41.55 ▼6.23 |
DCL Settings /wp-admin/admin.php?page=dcl-settings | 1,046 | 1.94 | 23.74 | 33.96 |
Disqus /wp-admin/admin.php?page=disqus | 880 | 4.24 | 115.03 | 26.64 |
All Comments /wp-admin/edit-comments.php | 1,819 | 2.28 | 33.60 | 30.47 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- disqus_sync_token
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/disqus-conditional-load/public/views/empty-comments.php
- > /wp-content/plugins/disqus-conditional-load/admin/class-dcl-admin.php
- > /wp-content/plugins/disqus-conditional-load/includes/class-dcl-activator-deactivator.php
- > /wp-content/plugins/disqus-conditional-load/uninstall.php
- > /wp-content/plugins/disqus-conditional-load/includes/class-dcl-i18n.php
- > /wp-content/plugins/disqus-conditional-load/disqus-conditional-load.php
- > /wp-content/plugins/disqus-conditional-load/admin/views/admin-pro.php
- > /wp-content/plugins/disqus-conditional-load/vendor/disqus-comment-system/public/partials/disqus-public-sso-login-profile.php
- > /wp-content/plugins/disqus-conditional-load/public/views/disqus-comments.php
- > /wp-content/plugins/disqus-conditional-load/includes/class-disqus-conditional-load.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/disqus-conditional-load/vendor/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)
There were no browser issues found
Optimizations
Plugin configuration Passed 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
9 plugin tags: disqus conditional load, woocommerce comments, disqus comments, hide disqus, disqus auto load...
disqus-conditional-load/disqus-conditional-load.php Passed 13 tests
The main PHP script in "Disqus Conditional Load" version 11.1.2 is automatically included on every request by WordPress
97 characters long description:
Disqus commenting system for WordPress with advanced features like like lazy load, shortcode etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin47,676 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 8,641 | 7,099 | 45,520 |
PHP | 27 | 580 | 2,016 | 2,038 |
CSS | 2 | 27 | 5 | 118 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 120 | |
▷ Static methods | 7 | 5.83% |
▷ Public methods | 82 | 68.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 38 | 31.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/buy-now-dcl.png | 11.45KB | 3.96KB | ▼ 65.45% |