90% helpfulnessmeter

Code Review | HelpfulnessMeter

WordPress plugin HelpfulnessMeter scored90%from 54 tests.

About plugin

  • Plugin page: helpfulnessmeter
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2023
  • Latest release: Jul 22, 2023
  • Number of updates: 8
  • Update frequency: every 4.5 days
  • Top authors: ludovicsclain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /161 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.76ms] Passed 4 tests

This is a short check of server-side resources used by HelpfulnessMeter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0750.32 ▲0.68
Dashboard /wp-admin3.36 ▲0.0651.34 ▼1.57
Posts /wp-admin/edit.php3.42 ▲0.0652.97 ▲1.13
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.24 ▼15.26
Media Library /wp-admin/upload.php3.29 ▲0.0639.55 ▲4.21
HelpfulnessMeter /wp-admin/options-general.php?page=hfnm3.2531.49

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 11 new options
New WordPress options
hfnm_types
can_compress_scripts
hfnm_no_text
hfnm_yes_text
theysaidso_admin_options
hfnm_thank_text
widget_theysaidso_widget
widget_recent-comments
hfnm_question_text
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for HelpfulnessMeter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.24 ▼0.281.76 ▼0.0444.05 ▲1.20
Dashboard /wp-admin2,199 ▲285.68 ▲0.1688.86 ▼2.0437.81 ▼3.77
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0839.62 ▼1.7736.31 ▼2.94
Add New Post /wp-admin/post-new.php1,529 ▼823.15 ▲4.80647.49 ▼20.5862.77 ▼12.63
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0397.46 ▼4.7343.95 ▼3.78
HelpfulnessMeter /wp-admin/options-general.php?page=hfnm8652.0026.3230.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

helpfulnessmeter/helpfulnessmeter.php Passed 13 tests

"HelpfulnessMeter" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
Improve your WordPress content by easily collecting feedback from your visitors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin332 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1060238
CSS112061
JavaScript10733

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin