84% wpify-woo

Code Review | WPify Woo Czech

WordPress plugin WPify Woo Czech scored84%from 54 tests.

About plugin

  • Plugin page: wpify-woo
  • Plugin version: 4.0.7
  • PHP compatiblity: 8.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 231
  • Update frequency: every 4.4 days
  • Top authors: wpify (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

4,000+ active /121,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WPify Woo Czech
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.63 ▼4.75
Dashboard /wp-admin3.31 ▲0.0042.62 ▼11.26
Posts /wp-admin/edit.php3.36 ▲0.0045.38 ▲0.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.73 ▼12.38
Media Library /wp-admin/upload.php3.23 ▲0.0032.16 ▼6.02

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,441 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPify Woo Czech
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.32 ▼0.001.67 ▼0.3639.65 ▼3.81
Dashboard /wp-admin2,195 ▲185.60 ▲0.0486.65 ▼9.8543.23 ▼3.41
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0136.01 ▼1.7034.98 ▼2.88
Add New Post /wp-admin/post-new.php1,535 ▲13124.96 ▲6.73639.76 ▼51.7668.09 ▲16.02
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0296.17 ▼15.1942.19 ▼6.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 814× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Flat_Rate' not found in wp-content/plugins/wpify-woo/src/Modules/PacketaShipping/ShippingMethods/ESMRWHD.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'WpifyWooDeps\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wpify-woo/deps/guzzlehttp/psr7/src/LimitStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WpifyWooDeps\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/wpify-woo/deps/guzzlehttp/promises/src/CancellationException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WsdlToPhp\\PackageBase\\AbstractStructBase' not found in wp-content/plugins/wpify-woo/lib/PacketeraSDK/src/WpifyWoo/PacketeraSDK/StructType/InvalidEmailAddressFault.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wpify-woo/deps/wpify/custom-fields/src/Api.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WpifyWooDeps\\Wpify\\Model\\Abstracts\\AbstractModel' not found in wp-content/plugins/wpify-woo/deps/wpify/model/src/Site.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'WpifyWooDeps\\DI\\Definition\\Definition' not found in wp-content/plugins/wpify-woo/deps/php-di/php-di/src/Definition/ObjectDefinition.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WpifyWooDeps\\Wpify\\Model\\Abstracts\\AbstractRepository' not found in wp-content/plugins/wpify-woo/deps/wpify/model/src/Abstracts/AbstractPostRepository.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WpifyWooDeps\\Wpify\\Core\\Abstracts\\AbstractCustomFieldsFactory' not found in wp-content/plugins/wpify-woo/src/Factories/WooOrderFieldsFactory.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WpifyWooDeps\\Wpify\\Core\\Abstracts\\AbstractComponent' not found in wp-content/plugins/wpify-woo/src/Admin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: czech, zsilkovna, wpify, heureka, woocommerce...

wpify-woo/wpify-woo.php 92% from 13 tests

The main PHP file in "WPify Woo Czech" ver. 4.0.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("8.0" instead of "8.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected89,109 lines of code in 1,334 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,1546,39236,39271,437
Markdown613,08208,781
JSON48804,387
PO File257359152,203
JavaScript17206651,059
XML732611
Sass6730451
CSS815163
YAML39048
Ant18041
Dockerfile210014
make14010
SVG1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.06
▷ Minimum class complexity1.00
▷ Maximum class complexity319.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces182
Interfaces122
Traits20
Classes986
▷ Abstract classes656.59%
▷ Concrete classes92193.41%
▷ Final classes20622.37%
Methods6,263
▷ Static methods64010.22%
▷ Public methods5,35085.42%
▷ Protected methods4477.14%
▷ Private methods4667.44%
Functions312
▷ Named functions3410.90%
▷ Anonymous functions27889.10%
Constants465
▷ Global constants51.08%
▷ Class constants46098.92%
▷ Public constants34474.78%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.33MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Modules/PacketaShipping/assets/images/zasilkovna_sk_logo.png13.07KB12.14KB▼ 7.07%
deps/wpify/custom-fields/build/images/flags@2x.276410ff.png179.65KB69.58KB▼ 61.27%
src/Modules/PacketaShipping/assets/images/packeta_logo.png15.11KB4.54KB▼ 69.94%
src/Modules/PacketaShipping/assets/images/zasilkovna_logo.png16.73KB6.28KB▼ 62.46%
deps/wpify/custom-fields/build/images/flags.1952df89.png68.68KB24.74KB▼ 63.98%