10% beeketing-for-woocommerce

Code Review | Beeketing for WooCommerce - Marketing Automation to Boost Sales

WordPress plugin Beeketing for WooCommerce - Marketing Automation to Boost Sales scored 10% from 54 tests.

About plugin

  • Plugin page: beeketing-for-woo...
  • Plugin version: 3.8.16
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Feb 12, 2016
  • Latest release: Dec 19, 2019
  • Number of updates: 496
  • Update frequency: every 2.9 days
  • Top authors: beeketing (100%)

Code review

54 tests

User reviews

995 reviews

Install metrics

3,000+ active / 342,088 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/beeketing-for-woocommerce/vendor/sentry/sentry/lib/Raven/Client.php+326
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.50MB] [CPU: ▼51.16ms] Passed 4 tests

Analyzing server-side resources used by Beeketing for WooCommerce - Marketing Automation to Boost Sales
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.49 ▼0.977.33 ▼32.64
Dashboard /wp-admin2.51 ▼0.806.89 ▼42.20
Posts /wp-admin/edit.php2.51 ▼0.8510.48 ▼36.49
Add New Post /wp-admin/post-new.php2.51 ▼3.388.56 ▼93.29
Media Library /wp-admin/upload.php2.51 ▼0.727.22 ▼28.36

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 290 new files
Database: no new tables, 7 new options
New WordPress options
beeketing_woocommerce_settings
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Beeketing for WooCommerce - Marketing Automation to Boost Sales
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,143 ▲40816.16 ▲1.573.49 ▲1.8528.24 ▼12.01
Dashboard /wp-admin2,544 ▲3567.01 ▲1.94202.65 ▲101.0176.49 ▲32.43
Posts /wp-admin/edit.php2,110 ▲212.01 ▼0.0538.27 ▼3.1533.19 ▼2.73
Add New Post /wp-admin/post-new.php1,681 ▲14722.51 ▼0.69672.20 ▲15.7955.78 ▼3.28
Media Library /wp-admin/upload.php1,403 ▲244.24 ▲0.04102.32 ▼3.9645.79 ▲0.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/beeketing-for-woocommerce/vendor/sentry/sentry/lib/Raven/Client.php+326
    Array and string offset access syntax with curly braces is deprecated
  • The plugin did not uninstall successfully, leaving 290 files (1.60MB) in the plugin directory
    • (new file) config.php
    • (new file) beeketing-woocommerce.php
    • (new file) composer.lock
    • (new file) sentry/SentryClient.php
    • (new file) composer.json
    • (new file) sentry.php
    • (new file) readme.txt
    • (new file) images/icon/icon_menu.png
    • (new file) sentry/RavenBreadcrumbsErrorHandler.php
    • (new file) index.php
    • ...
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • beeketing_woocommerce_settings
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/beeketing-for-woocommerce/src/Platforms/WooCommerce/Views/admin_index.php
    • > /wp-content/plugins/beeketing-for-woocommerce/src/Platforms/WooCommerce/Views/sdk_snippet.php
  • 149× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Buzz\\Exception\\ExceptionInterface' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/kriswallsmith/buzz/lib/Buzz/Exception/RuntimeException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/symfony/http-foundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/beeketing-for-woocommerce/src/Platforms/WooCommerce/Views/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Buzz\\Listener\\ListenerInterface' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/kriswallsmith/buzz/lib/Buzz/Listener/DigestAuthListener.php:8
    • > PHP Notice
      Undefined variable: scriptPath in wp-content/plugins/beeketing-for-woocommerce/src/Platforms/WooCommerce/Views/sdk_snippet.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:19
    • > PHP Notice
      Undefined variable: shopApiKey in wp-content/plugins/beeketing-for-woocommerce/src/Platforms/WooCommerce/Views/sdk_snippet.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'Buzz\\Client\\AbstractCurl' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/kriswallsmith/buzz/lib/Buzz/Client/MultiCurl.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException' not found in wp-content/plugins/beeketing-for-woocommerce/vendor/symfony/http-foundation/File/Exception/FileNotFoundException.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #3, #4, #5, #6, #7, #8, #9 in beeketing-for-woocommerce/assets to your readme.txt
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

beeketing-for-woocommerce/beeketing-woocommerce.php 85% from 13 tests

"Beeketing for WooCommerce - Marketing Automation to Boost Sales" version 3.8.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("beeketing-for-woocommerce.php" instead of "beeketing-woocommerce.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 362 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin26,671 lines of code in 269 files:
LanguageFilesBlank linesComment linesLines of code
PHP2515,53111,05225,475
JSON600429
Markdown51510426
XML4220263
YAML29063
make16015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.62
▷ Minimum class complexity1.00
▷ Maximum class complexity219.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces42
Interfaces18
Traits0
Classes222
▷ Abstract classes188.11%
▷ Concrete classes20491.89%
▷ Final classes41.96%
Methods2,002
▷ Static methods1447.19%
▷ Public methods1,76788.26%
▷ Protected methods1065.29%
▷ Private methods1296.44%
Functions84
▷ Named functions3744.05%
▷ Anonymous functions4755.95%
Constants213
▷ Global constants177.98%
▷ Class constants19692.02%
▷ Public constants196100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon/icon_menu.png1.05KB1.04KB▼ 1.21%