Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.49ms] Passed 4 tests
This is a short check of server-side resources used by Was This Helpful?
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.56 ▼1.15 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.42 ▼4.19 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 52.01 ▲3.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 100.13 ▲7.76 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.34 ▼0.45 |
Helpful /wp-admin/options-general.php?page=wthf | 3.25 | 33.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wthf_no_text |
widget_recent-posts |
wthf_thank_text |
theysaidso_admin_options |
widget_recent-comments |
wthf_question_text |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
wthf_types |
... |
Browser metrics Passed 4 tests
Was This Helpful?: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.75 ▲0.40 | 1.74 ▼0.25 | 41.14 ▼5.61 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.08 | 91.72 ▲1.91 | 41.37 ▲1.60 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▲0.01 | 40.37 ▲3.15 | 37.53 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.00 ▼0.14 | 687.20 ▲0.34 | 58.90 ▲2.19 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.15 ▼0.07 | 94.60 ▼21.34 | 46.24 ▼2.30 |
Helpful /wp-admin/options-general.php?page=wthf | 903 | 1.99 | 22.49 | 29.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/was-this-article-helpful/index.php:24
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: helpful, feedback, ux
was-this-article-helpful/index.php 92% from 13 tests
The main file in "Was This Helpful?" v. 1.0.2 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: Please rename the main PHP file in this plugin to the plugin slug ("was-this-article-helpful.php" instead of "index.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
Good job! No executable or dangerous file extensions detected279 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 125 | 54 | 176 |
CSS | 1 | 11 | 0 | 70 |
JavaScript | 1 | 13 | 7 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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 images were found in this plugin