67% wpboutik

Code Review | WPBoutik

WordPress plugin WPBoutik scored67%from 54 tests.

About plugin

  • Plugin page: wpboutik
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Jul 6, 2023
  • Number of updates: 15
  • Update frequency: every 11.1 days
  • Top authors: NicolasKulka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /211 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
Installer ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼0.20ms] Passed 4 tests

Server-side resources used by WPBoutik
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3850.80 ▼0.57
Dashboard /wp-admin3.69 ▲0.3566.00 ▲2.15
Posts /wp-admin/edit.php3.73 ▲0.3767.81 ▲10.74
Add New Post /wp-admin/post-new.php6.42 ▲0.53100.68 ▼13.10
Media Library /wp-admin/upload.php3.62 ▲0.3958.81 ▲21.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 734 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_widget_nouveaux_produits
theysaidso_admin_options
can_compress_scripts
wpboutik_flush_rewrite_rules_flag
widget_widget_meilleures_ventes
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPBoutik
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16814.43 ▼0.151.72 ▲0.1145.66 ▲3.75
Dashboard /wp-admin2,303 ▲1295.63 ▼0.0787.69 ▼0.2540.87 ▼2.56
Posts /wp-admin/edit.php2,184 ▲812.14 ▲0.1140.05 ▼1.2338.37 ▼0.37
Add New Post /wp-admin/post-new.php1,587 ▲6123.26 ▲5.56692.27 ▲0.1867.12 ▲15.67
Media Library /wp-admin/upload.php1,480 ▲804.24 ▲0.01113.92 ▼1.1250.59 ▲1.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • widget_widget_meilleures_ventes
    • theysaidso_admin_options
    • wpboutik_flush_rewrite_rules_flag
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_widget_nouveaux_produits

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 56× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/profiles/delete-profile.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/payments/webhook.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/customers/create-customer.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/subscriptions/cancel-subscription.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/customers/create-customer-first-payment.php
    • > /wp-content/plugins/wpboutik/vendor/stripe/stripe-php/examples/oauth.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/subscriptions/create-subscription.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/orders/cancel-order.php
    • > /wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/mandates/create-mandate.php
    • > /wp-content/plugins/wpboutik/vendor/stripe/stripe-php/build.php
  • 634× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wpboutik/vendor/stripe/stripe-php/lib/Reporting/ReportRun.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_block_theme() in wp-content/plugins/wpboutik/templates/account/orders.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpboutik/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/src/Resources/Order.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wpboutik/vendor/stripe/stripe-php/lib/Card.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wpboutik/vendor/stripe/stripe-php/tests/Stripe/Radar/ValueListTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Mollie\\Api\\Exceptions\\ApiException' not found in wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/src/Exceptions/UnrecognizedClientException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpboutik/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wpboutik/vendor/stripe/stripe-php/tests/Stripe/Issuing/AuthorizationTest.php:9
    • > PHP Warning
      require_once(wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/payments/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wpboutik/vendor/mollie/mollie-api-php/examples/payments/create-routed-payment.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

wpboutik/wpboutik.php 77% from 13 tests

The primary PHP file in "WPBoutik" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Git Repository: Please do not include Git repositories in your plugin
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
  • Do not distribute dangerous files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wpboutik/vendor/stripe/stripe-php/data/ca-certificates.crt
68,544 lines of code in 708 files:
LanguageFilesBlank linesComment linesLines of code
PHP6718,02621,30842,353
JSON90017,006
PO File12,0262,1084,092
CSS35621552,075
Markdown689101,783
JavaScript121481901,112
XML30067
make110029
Sass23027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces45
Interfaces12
Traits12
Classes557
▷ Abstract classes162.87%
▷ Concrete classes54197.13%
▷ Final classes15929.39%
Methods2,893
▷ Static methods2598.95%
▷ Public methods2,59389.63%
▷ Protected methods2257.78%
▷ Private methods752.59%
Functions150
▷ Named functions7449.33%
▷ Anonymous functions7650.67%
Constants1,331
▷ Global constants161.20%
▷ Class constants1,31598.80%
▷ Public constants1,315100.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
vendor/stripe/stripe-php/tests/data/test.png0.09KB0.09KB0.00%