78% bidorbuystoreintegrator

Code Review | bidorbuy Store Integrator

WordPress plugin bidorbuy Store Integrator scored78%from 54 tests.

About plugin

  • Plugin page: bidorbuystoreinte...
  • Plugin version: 2.12.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: May 9, 2021
  • Number of updates: 77
  • Update frequency: every 16.5 days
  • Top authors: extremeidea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.75ms] Passed 4 tests

An overview of server-side resources used by bidorbuy Store Integrator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.75 ▲4.40
Dashboard /wp-admin3.31 ▲0.0053.20 ▼3.56
Posts /wp-admin/edit.php3.36 ▲0.0053.09 ▲0.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.91 ▼16.28
Media Library /wp-admin/upload.php3.23 ▲0.0040.78 ▲4.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 315 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for bidorbuy Store Integrator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▲0.051.67 ▲0.1243.33 ▲1.26
Dashboard /wp-admin2,195 ▲215.53 ▼0.1084.82 ▼7.6840.70 ▲1.61
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0436.59 ▼4.9635.17 ▼3.21
Add New Post /wp-admin/post-new.php1,526 ▼223.29 ▲0.29663.29 ▲43.7066.04 ▲13.75
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.07101.66 ▼3.7845.80 ▼5.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bidorbuystoreintegrator/templates/banner.tpl.php
  • 172× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Request' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/ApacheRequest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/ResponseHeaderBagTest.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\File' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/File/FakeFile.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/File/MimeType/MimeTypeTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\ativeSessionHandler' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php:19

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

bidorbuystoreintegrator/BidorbuyStoreIntegrator.php 92% from 13 tests

The primary PHP file in "bidorbuy Store Integrator" version 2.12.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bidorbuystoreintegrator.php" instead of "BidorbuyStoreIntegrator.php")

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 detected33,649 lines of code in 289 files:
LanguageFilesBlank linesComment linesLines of code
PHP2646,76613,99931,162
Markdown93710881
JSON900764
CSS1703379
XML3200240
JavaScript24914222
HTML1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.73
▷ Minimum class complexity1.00
▷ Maximum class complexity231.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces38
Interfaces17
Traits4
Classes236
▷ Abstract classes93.81%
▷ Concrete classes22796.19%
▷ Final classes10.44%
Methods2,378
▷ Static methods1807.57%
▷ Public methods1,96082.42%
▷ Protected methods27511.56%
▷ Private methods1436.01%
Functions90
▷ Named functions4246.67%
▷ Anonymous functions4853.33%
Constants291
▷ Global constants62.06%
▷ Class constants28597.94%
▷ Public constants285100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.05MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tooltip.png0.24KB0.28KB0.00%
assets/images/sample_banner.png2.76KB2.76KB0.07%
assets/images/home-screen-picture.png38.02KB35.68KB▼ 6.17%
assets/images/bidorbuy.png7.04KB3.80KB▼ 46.03%