Benchmarks
Plugin footprint 75% 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
- Install procedure had 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(307): VHM_Show_Comments::activate()
#1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(474): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(689): do_action()
Server metrics [RAM: ▼0.02MB] [CPU: ▼299.99ms] Passed 4 tests
Analyzing server-side resources used by VHM Show Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.23 ▲1.68 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.78 ▼1.47 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 35.81 ▼5.22 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.17 ▼1,192.28 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.26 ▼1.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for VHM Show Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.82 ▼0.12 | 7.17 ▲1.10 | 2.17 ▲0.13 |
Dashboard /wp-admin | 2,895 ▲34 | 6.14 ▼0.03 | 116.01 ▼29.70 | 155.07 ▼11.81 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▼0.01 | 59.98 ▼6.51 | 140.71 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,719 ▲53 | 16.96 ▼3.86 | 428.28 ▲10.07 | 164.56 ▲7.74 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.05 | 140.56 ▼2.53 | 192.91 ▲7.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× 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/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 | 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: tinymce, random, comments, sidebar, shortcode...
vhm-show-comments/vhm-show-comments.php 92% from 13 tests
Analyzing the main PHP file in "VHM Show Comments" version 1.4
It is important to 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions 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
This is a very shot review of cyclomatic complexity and code structure
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected