90% the-feedback-company

Code Review | Feedback Company

WordPress plugin Feedback Company scored90%from 54 tests.

About plugin

  • Plugin page: the-feedback-company
  • Plugin version: 3.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: Aug 23, 2023
  • Number of updates: 54
  • Update frequency: every 42.6 days
  • Top authors: janmiddelkoop (92.59%)FeedbackCompany (9.26%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /17,900 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.86ms] Passed 4 tests

Analyzing server-side resources used by Feedback Company
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.10 ▼5.01
Dashboard /wp-admin3.48 ▲0.1845.72 ▼3.25
Posts /wp-admin/edit.php3.59 ▲0.2448.03 ▼2.21
Add New Post /wp-admin/post-new.php6.06 ▲0.1893.34 ▼4.95
Media Library /wp-admin/upload.php3.40 ▲0.1840.12 ▲7.05
Feedback Company /wp-admin/options-general.php?page=feedbackcompany3.4852.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 22 new options
New WordPress options
feedbackcompany_invitation_delay
feedbackcompany_productreviewsextendedwidget_toggle_element
feedbackcompany_invitation_reminder_unit
widget_recent-comments
db_upgraded
feedbackcompany_invitation_orderstatus
widget_feedbackcompany_main
feedbackcompany_invitation_reminder_enabled
feedbackcompany_invitation_reminder
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Feedback Company
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.34 ▼1.411.86 ▲0.1241.19 ▼2.49
Dashboard /wp-admin2,210 ▲224.86 ▼0.01106.94 ▼8.9543.98 ▼2.54
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0339.17 ▲4.5834.88 ▼0.05
Add New Post /wp-admin/post-new.php1,550 ▲1618.27 ▼4.97607.14 ▼67.9769.24 ▲16.05
Media Library /wp-admin/upload.php1,395 ▲104.23 ▼0.01106.10 ▲3.1342.64 ▼2.86
Feedback Company /wp-admin/options-general.php?page=feedbackcompany1,0181.9730.6333.98

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_feedbackcompany_bar
    • theysaidso_admin_options
    • db_upgraded
    • widget_feedbackcompany_main
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: shopping, woocommerce, customers, rich snippets, reviews...

the-feedback-company/the-feedback-company.php Passed 13 tests

"Feedback Company" version 3.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Integrates Feedback Company widgets, order registrations and product reviews in Wordpress/WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,578 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP63236141,334
JavaScript12419134
CSS160109
SVG1001

PHP code Passed 2 tests

An short overview of 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.37
Average class complexity28.29
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods94
▷ Static methods1920.21%
▷ Public methods94100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/widgets-preview/en_US/main-big-2.png22.47KB7.38KB▼ 67.18%
images/widgets-preview/en_US/main-small-0.png7.60KB3.37KB▼ 55.68%
images/widgets-preview/en_US/main-small-2.png18.83KB6.72KB▼ 64.33%
images/widgets-preview/en_US/main-big-1.png17.30KB6.49KB▼ 62.50%
images/widgets-preview/en_US/main-small-1.png13.23KB5.22KB▼ 60.57%