68% myshopkit-popup-smartbar-slidein

Code Review | WooCommerce Coupon Popup, SmartBar, Slide In | MyShopKit

WordPress plugin WooCommerce Coupon Popup, SmartBar, Slide In | MyShopKit scored68%from 54 tests.

About plugin

  • Plugin page: myshopkit-popup-s...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2021
  • Latest release: Oct 7, 2022
  • Number of updates: 23
  • Update frequency: every 12.3 days
  • Top authors: wiloke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,131 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲2.39MB] [CPU: ▲11.46ms] Passed 4 tests

A check of server-side resources used by WooCommerce Coupon Popup, SmartBar, Slide In | MyShopKit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.96 ▲2.5056.41 ▲14.66
Dashboard /wp-admin5.67 ▲2.3762.44 ▲11.07
Posts /wp-admin/edit.php5.72 ▲2.3761.85 ▲14.64
Add New Post /wp-admin/post-new.php8.35 ▲2.46114.57 ▲5.47
Media Library /wp-admin/upload.php5.59 ▲2.3756.24 ▲20.07
Add New /wp-admin/post-new.php?post_type=mskpss_smartbar5.7261.75
All Items /wp-admin/edit.php?post_type=mskpss_smartbar5.6449.53
Slide In /wp-admin/edit.php?post_type=mskpss_slidein5.6449.68
Add New /wp-admin/post-new.php?post_type=mskpss_slidein5.7258.87
All Items /wp-admin/edit.php?post_type=mskpss_popup5.6451.00
Add New /wp-admin/post-new.php?post_type=mskpss_popup5.7262.26

Server storage [IO: ▲6.12MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,845 new files
Database: 3 new tables, 10 new options
New tables
wp_mskpss_view_statistic
wp_mskpss_click_statistic
wp_mskpss_subscriber_statistic
New WordPress options
db_upgraded
widget_theysaidso_widget
mskpss_view_statistic
mskpss_click_statistic
widget_recent-comments
can_compress_scripts
mskpss_subscriber_statistic
theysaidso_admin_options
mskpss_auth
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Coupon Popup, SmartBar, Slide In | MyShopKit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,032 ▲28616.65 ▲2.0326.58 ▲24.7376.66 ▲30.91
Dashboard /wp-admin2,306 ▲1185.90 ▲0.04110.61 ▼1.2545.88 ▲0.45
Posts /wp-admin/edit.php2,189 ▲972.13 ▲0.1540.57 ▼1.8336.18 ▼0.84
Add New Post /wp-admin/post-new.php1,623 ▲8622.92 ▼0.46617.56 ▼10.9947.87 ▼6.14
Media Library /wp-admin/upload.php1,488 ▲1004.27 ▲0.04100.09 ▼10.6745.07 ▼1.65
Add New /wp-admin/post-new.php?post_type=mskpss_smartbar2,2937.58178.1769.75
All Items /wp-admin/edit.php?post_type=mskpss_smartbar1,1702.0231.4630.69
Slide In /wp-admin/edit.php?post_type=mskpss_slidein1,1701.9330.9730.69
Add New /wp-admin/post-new.php?post_type=mskpss_slidein2,3027.64159.9156.24
All Items /wp-admin/edit.php?post_type=mskpss_popup1,1672.0030.1028.12
Add New /wp-admin/post-new.php?post_type=mskpss_popup2,2997.60181.7258.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 3 tables
    • wp_mskpss_view_statistic
    • wp_mskpss_click_statistic
    • wp_mskpss_subscriber_statistic
  • Zombie WordPress options detected upon uninstall: 9 options
    • mskpss_click_statistic
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • mskpss_view_statistic
    • can_compress_scripts
    • theysaidso_admin_options
    • mskpss_subscriber_statistic

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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 97× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/campaign/get_email_client_usage.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/client/get_lists.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/client/set_payg_billing.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/campaign/get_opens.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/campaign/get_clicks.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/list/get_segments.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/journeys/get_journey_bounces.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/campaign/delete.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/list/delete_custom_field.php
    • > /wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/campaignmonitor/createsend-php/samples/segment/clear_rules.php
  • 1075× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\QueryOperation' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Shops/Categories/GetCategory/GetCategory.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\QueryOperation' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Shops/Carts/GetCart/GetCart.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\BaseModel' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Model/UpsertSingleMetaField.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'MyShopKitPopupSmartBarSlideIn\\Shared\\Middleware\\Middlewares\\IMiddleware' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/src/MailServices/Klaviyo/Middlewares/IsValidListIDMiddleware.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\SearchQuery' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Suppressions/GetSuppressions/GetSuppressionsSearchQuery.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Egulias\\EmailValidator\\Result\\Result' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/egulias/email-validator/src/Result/ValidEmail.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\CommandOperation' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Shops/Products/Variants/UpdateVariant/UpdateVariant.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Operation\\Model\\SearchContactSection' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Model/SectionLast2MonthsSubscriptionDate.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\BaseModel' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/Model/AccountDetailsCountryCode.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Getresponse\\Sdk\\Client\\Operation\\QueryOperation' not found in wp-content/plugins/myshopkit-popup-smartbar-slidein/vendor/getresponse/sdk-php/src/Operation/TemplateCategories/Templates/GetTemplate/GetTemplate.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

myshopkit-popup-smartbar-slidein/myshopkit-popup-smartbar-slidein.php Passed 13 tests

Analyzing the main PHP file in "WooCommerce Coupon Popup, SmartBar, Slide In | MyShopKit" version 1.0.9
26 characters long description:
The one kit to boost sales

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected142,041 lines of code in 1,769 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,56723,80835,830124,851
Markdown963,67309,590
JSON47905,062
JavaScript132201,205
YAML3423339837
Ant11440256
XML7122115
HTML11251
Bourne Shell113831
reStructuredText2231831
make1409
CSS1003

PHP code 0% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,909)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.98
▷ Minimum class complexity1.00
▷ Maximum class complexity1,909.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces347
Interfaces68
Traits56
Classes1,240
▷ Abstract classes332.66%
▷ Concrete classes1,20797.34%
▷ Final classes514.23%
Methods6,693
▷ Static methods69710.41%
▷ Public methods5,84187.27%
▷ Protected methods4767.11%
▷ Private methods3765.62%
Functions266
▷ Named functions10639.85%
▷ Anonymous functions16060.15%
Constants733
▷ Global constants12717.33%
▷ Class constants60682.67%
▷ Public constants60199.17%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin