Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▲0.91ms] Passed 4 tests
An overview of server-side resources used by Helpful - Article Feedback Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 37.80 ▼1.17 |
Dashboard /wp-admin | 4.27 ▲0.97 | 50.29 ▲3.75 |
Posts /wp-admin/edit.php | 4.32 ▲0.96 | 55.99 ▲7.59 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.97 | 99.91 ▼2.64 |
Media Library /wp-admin/upload.php | 4.19 ▲0.97 | 37.55 ▲3.69 |
Help /wp-admin/admin.php?page=daexthefu-help | 4.10 | 34.70 |
Maintenance /wp-admin/admin.php?page=daexthefu-maintenance | 4.11 | 37.12 |
Options /wp-admin/admin.php?page=daexthefu-options | 4.14 | 32.46 |
Pro Version /wp-admin/admin.php?page=daexthefu-pro-version | 4.10 | 34.80 |
Statistics /wp-admin/admin.php?page=daexthefu-statistics | 4.20 | 37.36 |
Server storage [IO: ▲0.90MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 118 new files
Database: 2 new tables, 96 new options
New tables |
---|
wp_daexthefu_archive |
wp_daexthefu_feedback |
New WordPress options |
---|
daexthefu_container_horizontal_margin |
daexthefu_rating_button_font_color |
daexthefu_comment_textarea_font_style |
daexthefu_test_mode |
daexthefu_layout |
daexthefu_cookie_expiration |
db_upgraded |
daexthefu_set_max_execution_time |
daexthefu_button_type |
daexthefu_successful_submission_font_color |
... |
Browser metrics Passed 4 tests
Helpful - Article Feedback Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 14.12 ▼0.44 | 5.82 ▲4.24 | 40.47 ▲1.08 |
Dashboard /wp-admin | 2,239 ▲54 | 5.87 ▲0.99 | 107.53 ▲6.34 | 39.10 ▼5.17 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.03 ▼0.02 | 38.96 ▼1.45 | 32.55 ▼9.15 |
Add New Post /wp-admin/post-new.php | 1,562 ▲48 | 18.28 ▲0.90 | 596.74 ▼72.51 | 56.44 ▼3.64 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.18 ▼0.01 | 94.54 ▼9.36 | 38.71 ▼1.47 |
Help /wp-admin/admin.php?page=daexthefu-help | 842 | 2.05 | 23.41 | 30.49 |
Maintenance /wp-admin/admin.php?page=daexthefu-maintenance | 991 | 2.64 | 57.17 | 31.39 |
Options /wp-admin/admin.php?page=daexthefu-options | 1,552 | 3.07 | 56.56 | 34.39 |
Pro Version /wp-admin/admin.php?page=daexthefu-pro-version | 848 | 2.05 | 23.56 | 25.19 |
Statistics /wp-admin/admin.php?page=daexthefu-statistics | 1,214 | 2.75 | 56.44 | 31.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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
Everything seems fine, however 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 fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-helpful/admin/view/statistics.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-helpful/admin/view/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-helpful/admin/view/pro_version.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-helpful/admin/view/maintenance.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-helpful/admin/view/help.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
daext-helpful/init.php 92% from 13 tests
Analyzing the main PHP file in "Helpful - Article Feedback Plugin" version 1.07
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("daext-helpful.php" instead of "init.php")
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
No dangerous file extensions were detected17,276 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 77 | 2,778 | 925 | 9,989 |
PHP | 15 | 1,410 | 647 | 4,250 |
CSS | 13 | 662 | 91 | 3,020 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 29.71 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 164 | |
▷ Static methods | 7 | 4.27% |
▷ Public methods | 155 | 94.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 5.49% |
Functions | 2 | |
▷ Named functions | 2 | 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
10 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/external-disabled.png | 2.17KB | 0.26KB | ▼ 87.88% |
admin/assets/img/help-fdfdfd.png | 15.52KB | 0.53KB | ▼ 96.60% |
admin/assets/img/help-f7f7f7.png | 15.86KB | 0.59KB | ▼ 96.25% |
admin/assets/img/edit-hover.png | 1.30KB | 0.33KB | ▼ 74.47% |
admin/assets/img/external-hover.png | 2.21KB | 0.24KB | ▼ 89.07% |