10% integration-for-baazarvoice

Code Review | Integration for BazaarVoice

WordPress plugin Integration for BazaarVoice scored10%from 54 tests.

About plugin

  • Plugin page: integration-for-b...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 4
  • Update frequency: every 99.5 days
  • Top authors: miriamgoldman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /586 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/integration-for-baazarvoice/inc/classes/class-wp-baazarvoice-wrapper.php+72
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.72MB] [CPU: ▼55.42ms] Passed 4 tests

A check of server-side resources used by Integration for BazaarVoice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.196.67 ▼35.08
Dashboard /wp-admin2.30 ▼1.057.23 ▼50.58
Posts /wp-admin/edit.php2.30 ▼1.067.57 ▼49.34
Add New Post /wp-admin/post-new.php2.30 ▼3.598.46 ▼86.66
Media Library /wp-admin/upload.php2.30 ▼0.937.69 ▼27.54
WordPress Baazarvoice Integration /wp-admin/options-general.php?page=Wp_Baazarvoice2.308.36

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Integration for BazaarVoice
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.061.76 ▼0.0543.74 ▲0.14
Dashboard /wp-admin2,210 ▲225.78 ▼0.1095.78 ▼3.9037.75 ▼2.55
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0339.22 ▲4.0135.23 ▼5.31
Add New Post /wp-admin/post-new.php1,536 ▲323.33 ▲0.03639.68 ▼74.2856.77 ▼2.58
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.02111.82 ▲2.2946.38 ▼1.21
WordPress Baazarvoice Integration /wp-admin/options-general.php?page=Wp_Baazarvoice9121.8825.1932.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/integration-for-baazarvoice/inc/classes/class-wp-baazarvoice-wrapper.php+72
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Wp_Baazarvoice
    • > Notice in wp-content/plugins/integration-for-baazarvoice/inc/classes/class-wp-baazarvoice-wrapper.php+74
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=Wp_Baazarvoice
    • > Notice in wp-content/plugins/integration-for-baazarvoice/inc/classes/class-wp-baazarvoice-admin.php+173
    Undefined variable: value

SRP 50% from 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
Please fix the following
  • 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/bvseosdk.php on line 88
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/bvseosdk.php on line 87
    • > PHP Warning
      require_once(bvseosdk.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/test/SpotlightsTest.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'bvseosdk.php' (include_path='.:/usr/share/php') in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/test/Classes/SpotlightsTest.php on line 3
    • > PHP Warning
      require_once(bvseosdk.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/test/Classes/BVTest.php on line 3
    • > PHP Warning
      require_once(bvseosdk.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/test/Classes/BaseTest.php on line 3
    • > PHP Warning
      require_once(bvseosdk.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/test/CharsetTest.php on line 3
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/bvseosdk.php on line 87
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/bvseosdk.php on line 87
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/integration-for-baazarvoice/inc/seo_sdk_php-master/bvseosdk.php on line 87

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: ratings, bazaarvoice, workable, reviews, comments

integration-for-baazarvoice/wp-baazarvoice.php 85% from 13 tests

The main PHP file in "Integration for BazaarVoice" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integration-for-baazarvoice.php" instead of "wp-baazarvoice.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,662 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP295851,0712,437
Maven192174
Markdown218071
JavaScript117158
XML14719
HTML1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.92
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods131
▷ Static methods129.16%
▷ Public methods9673.28%
▷ Protected methods1612.21%
▷ Private methods1914.50%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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