Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/vhm-show-comments/vhm-show-comments.php+70
Uncaught Error: Using $this when not in object context in wp-content/plugins/vhm-show-comments/vhm-show-comments.php:70
Stack trace:
#0 wp-includes/class-wp-hook.php(310): VHM_Show_Comments::activate()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.42ms] Passed 4 tests
Server-side resources used by VHM Show Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.22 ▼6.44 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.20 ▼11.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.48 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.14 ▼8.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.38 ▲0.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by VHM Show Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.47 ▲0.18 | 1.88 ▲0.05 | 47.86 ▲5.49 |
Dashboard /wp-admin | 2,218 ▲15 | 4.83 ▼0.00 | 101.58 ▼1.42 | 42.80 ▲0.99 |
Posts /wp-admin/edit.php | 2,097 ▲18 | 1.99 ▼0.05 | 38.02 ▲0.39 | 36.91 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.37 ▲5.97 | 602.54 ▼39.66 | 54.13 ▼13.43 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.10 | 116.09 ▲14.66 | 47.10 ▼0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vhm-show-comments/vhm-show-comments.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vhm-show-comments/settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
6 plugin tags: random, comments, shortcode, tinymce, widget...
vhm-show-comments/vhm-show-comments.php 92% from 13 tests
The primary PHP file in "VHM Show Comments" version 1.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected564 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 50 | 395 |
PO File | 1 | 72 | 106 | 129 |
JavaScript | 1 | 1 | 0 | 27 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 11 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin