73% visitors-feedback

Code Review | Exit Intent Visitors Feedback

WordPress plugin Exit Intent Visitors Feedback scored73%from 54 tests.

About plugin

  • Plugin page: visitors-feedback
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 26, 2023
  • Latest release: Oct 14, 2023
  • Number of updates: 16
  • Update frequency: every 16.4 days
  • Top authors: shehabulislam (81.25%)abuhayat (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.39ms] Passed 4 tests

Analyzing server-side resources used by Exit Intent Visitors Feedback
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.02 ▲0.68
Dashboard /wp-admin3.51 ▲0.2051.77 ▲2.68
Posts /wp-admin/edit.php3.57 ▲0.2265.28 ▲14.39
Add New Post /wp-admin/post-new.php6.04 ▲0.1590.29 ▲1.61
Media Library /wp-admin/upload.php3.37 ▲0.1443.37 ▼6.54
Feedbacks /wp-admin/admin.php?page=vstr-feedbacks3.3435.51
Design /wp-admin/admin.php?page=visitor-feedback-settings3.3434.31

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 43 new files
Database: 1 new table, 7 new options
New tables
wp_vstr_visitor_feedbacks
New WordPress options
vstr_visitor_feedbacks_database_version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Exit Intent Visitors Feedback
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲28021.73 ▲7.3731.62 ▲29.6540.00 ▼7.15
Dashboard /wp-admin2,310 ▲13310.27 ▲4.64261.23 ▲168.6242.92 ▲0.72
Posts /wp-admin/edit.php2,236 ▲1369.24 ▲7.2396.78 ▲56.5136.35 ▼0.35
Add New Post /wp-admin/post-new.php1,715 ▲18723.17 ▲0.15567.83 ▼104.7036.34 ▼24.54
Media Library /wp-admin/upload.php1,601 ▲19811.85 ▲7.69141.58 ▲27.6445.43 ▼6.63
Feedbacks /wp-admin/admin.php?page=vstr-feedbacks9419.3196.9629.04
Design /wp-admin/admin.php?page=visitor-feedback-settings1,18711.03134.0140.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_vstr_visitor_feedbacks
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • vstr_visitor_feedbacks_database_version

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=visitor-feedback-settings
    • > Console-api (severe) in wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff+1:19276
    Store \"visitor-feedback\" is already registered.
    • > GET request to /wp-admin/admin.php?page=visitor-feedback-settings
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    `position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Requires at least: Version format is invalid
The official readme.txt might help

visitors-feedback/visitor-feedback.php 85% from 13 tests

The main PHP script in "Exit Intent Visitors Feedback" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("visitors-feedback.php" instead of "visitor-feedback.php")

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
There were no executable files found in this plugin865 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP17182311712
PO File25297130
JSON30017
CSS3033
JavaScript3033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.17
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods66
▷ Static methods1116.67%
▷ Public methods6395.45%
▷ Protected methods00.00%
▷ Private methods34.55%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants2100.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
No PNG files were detected