88% bizrate-insights-for-woocommerce

Code Review | Online Buyer Survey by Bizrate Insights

WordPress plugin Online Buyer Survey by Bizrate Insights scored 88% from 54 tests.

About plugin

  • Plugin page: bizrate-insights-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2022
  • Latest release: Jan 3, 2023
  • Number of updates: 24
  • Update frequency: every 1.7 days
  • Top authors: bizrateteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 867 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.69ms] Passed 4 tests

A check of server-side resources used by Online Buyer Survey by Bizrate Insights
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.00 ▼7.38
Dashboard /wp-admin3.33 ▲0.0250.93 ▲0.23
Posts /wp-admin/edit.php3.38 ▲0.0248.70 ▼1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.53 ▲3.34
Media Library /wp-admin/upload.php3.25 ▲0.0234.80 ▼2.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Online Buyer Survey by Bizrate Insights
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5013.27 ▼1.111.59 ▼0.9342.05 ▲0.32
Dashboard /wp-admin2,213 ▲254.84 ▼0.05108.70 ▲6.2137.63 ▼3.33
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0439.58 ▲4.1935.31 ▲0.67
Add New Post /wp-admin/post-new.php1,540 ▲323.11 ▼0.03648.39 ▼48.3551.85 ▼14.69
Media Library /wp-admin/upload.php1,395 ▲44.19 ▲0.0299.63 ▼1.2243.17 ▲0.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Online Buyer Survey invitation)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

bizrate-insights-for-woocommerce/online-buyer-survey-by-bizrate-insights.php 69% from 13 tests

The entry point to "Online Buyer Survey by Bizrate Insights" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.0")
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bizrate-insights-for-woocommerce.php" instead of "online-buyer-survey-by-bizrate-insights.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin367 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP366149367

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.33
▷ Minimum class complexity7.00
▷ Maximum class complexity25.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods311.54%
▷ Public methods1557.69%
▷ Protected methods27.69%
▷ Private methods934.62%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin