84% daext-helpful

Code Review | Helpful - Article Feedback Plugin

WordPress plugin Helpful - Article Feedback Plugin scored84%from 54 tests.

About plugin

  • Plugin page: daext-helpful
  • Plugin version: 1.07
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2023
  • Latest release: Sep 11, 2023
  • Number of updates: 8
  • Update frequency: every 28.5 days
  • Top authors: daext (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,448 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1937.80 ▼1.17
Dashboard /wp-admin4.27 ▲0.9750.29 ▲3.75
Posts /wp-admin/edit.php4.32 ▲0.9655.99 ▲7.59
Add New Post /wp-admin/post-new.php6.86 ▲0.9799.91 ▼2.64
Media Library /wp-admin/upload.php4.19 ▲0.9737.55 ▲3.69
Help /wp-admin/admin.php?page=daexthefu-help4.1034.70
Maintenance /wp-admin/admin.php?page=daexthefu-maintenance4.1137.12
Options /wp-admin/admin.php?page=daexthefu-options4.1432.46
Pro Version /wp-admin/admin.php?page=daexthefu-pro-version4.1034.80
Statistics /wp-admin/admin.php?page=daexthefu-statistics4.2037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20414.12 ▼0.445.82 ▲4.2440.47 ▲1.08
Dashboard /wp-admin2,239 ▲545.87 ▲0.99107.53 ▲6.3439.10 ▼5.17
Posts /wp-admin/edit.php2,122 ▲332.03 ▼0.0238.96 ▼1.4532.55 ▼9.15
Add New Post /wp-admin/post-new.php1,562 ▲4818.28 ▲0.90596.74 ▼72.5156.44 ▼3.64
Media Library /wp-admin/upload.php1,421 ▲334.18 ▼0.0194.54 ▼9.3638.71 ▼1.47
Help /wp-admin/admin.php?page=daexthefu-help8422.0523.4130.49
Maintenance /wp-admin/admin.php?page=daexthefu-maintenance9912.6457.1731.39
Options /wp-admin/admin.php?page=daexthefu-options1,5523.0756.5634.39
Pro Version /wp-admin/admin.php?page=daexthefu-pro-version8482.0523.5625.19
Statistics /wp-admin/admin.php?page=daexthefu-statistics1,2142.7556.4431.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript772,7789259,989
PHP151,4106474,250
CSS13662913,020
Markdown14017

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 code0.20
Average class complexity29.71
▷ Minimum class complexity17.00
▷ Maximum class complexity56.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods164
▷ Static methods74.27%
▷ Public methods15594.51%
▷ Protected methods00.00%
▷ Private methods95.49%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/assets/img/external-disabled.png2.17KB0.26KB▼ 87.88%
admin/assets/img/help-fdfdfd.png15.52KB0.53KB▼ 96.60%
admin/assets/img/help-f7f7f7.png15.86KB0.59KB▼ 96.25%
admin/assets/img/edit-hover.png1.30KB0.33KB▼ 74.47%
admin/assets/img/external-hover.png2.21KB0.24KB▼ 89.07%