Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/voight-kampff-comment-test/vkcomments.php+241
Non-static method vkctRun::admin() should not be called statically
Server metrics [RAM: ▼1.85MB] [CPU: ▼53.05ms] Passed 4 tests
An overview of server-side resources used by Voight Kampff Comment Test
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 4.73 ▼35.48 |
Dashboard /wp-admin | 2.15 ▼1.15 | 5.43 ▼50.47 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 6.32 ▼40.82 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 6.16 ▼85.43 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.17 ▼34.91 |
Voight-Kampff Comment Test /wp-admin/plugins.php?page=vkct-settings | 2.16 | 5.72 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
vkct-questions |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
vkct-options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Voight Kampff Comment Test
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.72 ▲0.35 | 2.09 ▼0.29 | 40.56 ▼5.26 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.05 | 95.56 ▼8.70 | 38.89 ▼11.57 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.02 | 40.00 ▼0.28 | 35.73 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.09 ▲0.07 | 643.85 ▼26.72 | 67.47 ▲5.07 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.27 ▲0.06 | 102.07 ▼7.27 | 47.09 ▼2.20 |
Voight-Kampff Comment Test /wp-admin/plugins.php?page=vkct-settings | 943 | 2.13 | 29.70 | 29.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/voight-kampff-comment-test/vkcomments.php+241
Non-static method vkctRun::admin() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-content/plugins/voight-kampff-comment-test/vkcomments.php+241
Non-static method vkctRun::admin() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method vkctSettings::option_setup() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-content/plugins/voight-kampff-comment-test/admin.php+212
Non-static method vkctSettings::default_options() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method vkctSettings::admin_pages() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method vkctSettings::register_settings() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method vkctSettings::options_page() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method vkctSettings::general_settings() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_gen() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_display() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-content/plugins/voight-kampff-comment-test/admin.php+125
Non-static method vkctSettings::display_options() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_question() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_answer() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method vkctSettings::global_settings() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_use_default() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_logged_in() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-content/plugins/voight-kampff-comment-test/admin.php+111
Non-static method vkctSettings::logged_in_options() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_req_text() should not be called statically
- > GET request to /wp-admin/plugins.php?page=vkct-settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method vkctSettings::field_qa_display() should not be called statically
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/voight-kampff-comment-test/vkcomments.php:142
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Example of fields added using the VKCT plugin.)
voight-kampff-comment-test/vkcomments.php 85% from 13 tests
Analyzing the main PHP file in "Voight Kampff Comment Test" version 0.1.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("voight-kampff-comment-test.php" instead of "vkcomments.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 304 characters long)
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
Everything looks great! No dangerous files found in this plugin421 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 114 | 19 | 421 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 30 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected