Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/disqus-recent-comments-widget-advanced/drcwa.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; tp_disqusrecentcomments has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.08ms] Passed 4 tests
This is a short check of server-side resources used by Disqus Recent Comments Widget Advanced
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.20 ▼39.76 |
Dashboard /wp-admin | 2.10 ▼1.20 | 7.44 ▼43.91 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.57 ▼46.91 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.75 ▼85.72 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.13 ▼27.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_tp_disqusrecentcomments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Disqus Recent Comments Widget Advanced
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.37 | 1.78 ▼0.51 | 42.95 ▼3.82 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.03 | 88.14 ▼12.76 | 39.64 ▼4.03 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.01 | 33.46 ▼5.06 | 36.41 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 22.91 ▼0.23 | 636.82 ▼72.06 | 58.42 ▼19.12 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.00 | 98.73 ▼7.48 | 44.06 ▼3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/disqus-recent-comments-widget-advanced/drcwa.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; tp_disqusrecentcomments has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_tp_disqusrecentcomments
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/disqus-recent-comments-widget-advanced/drcwa.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: disqus, recent comments, widgets
disqus-recent-comments-widget-advanced/drcwa.php 92% from 13 tests
Analyzing the main PHP file in "Disqus Recent Comments Widget Advanced" version 1.5
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("disqus-recent-comments-widget-advanced.php" instead of "drcwa.php")
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
Success! There were no dangerous files found in this plugin297 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 10 | 201 |
CSS | 2 | 3 | 0 | 96 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ 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 files were detected