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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▼2.09ms] Passed 4 tests
This is a short check of server-side resources used by WPHelpful
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 43.22 ▲1.22 |
Dashboard /wp-admin | 3.73 ▲0.42 | 51.45 ▼4.96 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 52.66 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 91.08 ▼3.25 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 39.41 ▲5.06 |
Post Feedback /wp-admin/admin.php?page=wphelpful-posts | 3.53 | 34.18 |
General Settings /wp-admin/admin.php?page=wphelpful-settings | 3.56 | 33.62 |
WPHelpful /wp-admin/options-general.php?page=wphelpful | 3.56 | 36.05 |
Sitewide Feedback /wp-admin/admin.php?page=wphelpful-feedback | 3.56 | 33.51 |
User Feedback /wp-admin/admin.php?page=wphelpful-users | 3.53 | 32.64 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WPHelpful
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 13.62 ▼0.73 | 9.42 ▲7.22 | 43.74 ▼0.21 |
Dashboard /wp-admin | 2,253 ▲82 | 5.84 ▲0.28 | 88.90 ▲0.06 | 37.89 ▼2.92 |
Posts /wp-admin/edit.php | 2,196 ▲96 | 2.30 ▲0.29 | 38.70 ▲3.27 | 36.87 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6,288 ▲4,760 | 26.02 ▲2.99 | 898.75 ▲217.12 | 55.78 ▲2.09 |
Media Library /wp-admin/upload.php | 1,459 ▲62 | 4.56 ▲0.33 | 99.56 ▼15.88 | 42.75 ▼6.45 |
Post Feedback /wp-admin/admin.php?page=wphelpful-posts | 694 | 1.51 | 6.74 | 14.10 |
General Settings /wp-admin/admin.php?page=wphelpful-settings | 1,714 | 2.88 | 29.56 | 69.00 |
WPHelpful /wp-admin/options-general.php?page=wphelpful | 1,042 | 2.11 | 29.04 | 29.64 |
Sitewide Feedback /wp-admin/admin.php?page=wphelpful-feedback | 888 | 2.09 | 30.53 | 25.33 |
User Feedback /wp-admin/admin.php?page=wphelpful-users | 694 | 1.12 | 6.52 | 14.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% 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)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=wphelpful-posts
- > Notice in wp-content/plugins/wphelpful/admin/class-wphelpful-admin.php+944
Undefined index: post_id
- > GET request to /wp-admin/admin.php?page=wphelpful-users
- > Notice in wp-content/plugins/wphelpful/admin/class-wphelpful-admin.php+1029
Undefined index: user_id
SRP 0% 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
Almost there! Just fix the following items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wphelpful/public/partials/wphelpful-templates-confirmation.php
- > /wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-site-feedback.php
- > /wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-user-feedback-column.php
- > /wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-post-feedback.php
- > /wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-user-feedback.php
- > /wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-post-feedback-column.php
- > /wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-settings-textarea.php
- 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: text in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-settings-textarea.php on line 2
- > PHP Notice
Undefined variable: post in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-post-feedback.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-settings-input.php:2
- > PHP Notice
Undefined variable: post_rating in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-post-feedback-column.php on line 3
- > PHP Notice
Undefined variable: user_feedback in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-user-feedback.php on line 19
- > PHP Notice
Undefined variable: show_feedback in wp-content/plugins/wphelpful/public/partials/wphelpful-templates-stars.php on line 2
- > PHP Notice
Undefined variable: name in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-settings-checkbox.php on line 9
- > PHP Notice
Undefined variable: confirmation_text in wp-content/plugins/wphelpful/public/partials/wphelpful-templates-confirmation.php on line 3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-post-feedback-column.php on line 7
- > PHP Notice
Undefined variable: name in wp-content/plugins/wphelpful/admin/partials/wphelpful-admin-settings-input.php on line 2
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 20 tag instead of maximum 10
wphelpful/wphelpful.php 92% from 13 tests
"WPHelpful" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
There were no executable files found in this plugin1,720 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 410 | 918 | 1,538 |
CSS | 2 | 28 | 4 | 98 |
JavaScript | 2 | 23 | 22 | 84 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 20.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 2 | 2.38% |
▷ Public methods | 79 | 94.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.95% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wph.png | 8.03KB | 4.43KB | ▼ 44.81% |