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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼11.41ms] Passed 4 tests
A check of server-side resources used by Disqus Popular Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.58 ▼3.94 |
Dashboard /wp-admin | 3.45 ▲0.10 | 48.20 ▼19.46 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.16 ▼5.51 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 94.45 ▼16.72 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.22 ▲2.02 |
Disqus Popular Posts /wp-admin/options-general.php?page=disqus-popular-posts | 3.40 | 37.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_dpp_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Disqus Popular Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▼0.02 | 1.83 ▼0.21 | 40.41 ▲0.36 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▼0.04 | 84.87 ▼8.44 | 40.37 ▼3.53 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.03 | 39.27 ▲0.81 | 35.62 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.50 ▲0.57 | 674.26 ▼0.15 | 56.80 ▲8.61 |
Media Library /wp-admin/upload.php | 1,395 ▼2 | 4.16 ▲0.03 | 98.37 ▲0.25 | 42.35 ▲1.40 |
Disqus Popular Posts /wp-admin/options-general.php?page=disqus-popular-posts | 1,406 | 2.16 | 22.62 | 31.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_dpp_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=disqus-popular-posts
- > Notice in wp-content/plugins/disqus-popular-posts/dpp_admin.php+242
Undefined index: mode
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=disqus-popular-posts
- > Notice in wp-content/plugins/disqus-popular-posts/dpp_admin.php+205
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=disqus-popular-posts
- > Notice in wp-content/plugins/disqus-popular-posts/dpp_admin.php+61
Undefined variable: disqus_data
- > GET request to /wp-admin/options-general.php?page=disqus-popular-posts
- > Notice in wp-content/plugins/disqus-popular-posts/dpp_admin.php+67
Undefined variable: PHP_SELF
- > GET request to /wp-admin/options-general.php?page=disqus-popular-posts
- > Notice in wp-content/plugins/disqus-popular-posts/dpp_admin.php+117
Undefined variable: comments_text_first
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 fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: mode in wp-content/plugins/disqus-popular-posts/dpp_admin.php on line 242
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/disqus-popular-posts/dpp_admin.php:274
- > PHP Notice
Undefined index: mode in wp-content/plugins/disqus-popular-posts/dpp_admin.php on line 242
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/disqus-popular-posts/dpp.php:445
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: widget, disqus, shortcode, posts, comments
disqus-popular-posts/dpp.php 92% from 13 tests
The main file in "Disqus Popular Posts" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("disqus-popular-posts.php" instead of "dpp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected829 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 140 | 92 | 808 |
JavaScript | 1 | 2 | 0 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin