78% wc-exporter-for-danea

Code Review | WooCommerce Exporter for Danea

WordPress plugin WooCommerce Exporter for Danea scored78%from 54 tests.

About plugin

  • Plugin page: wc-exporter-for-d...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 3, 2016
  • Latest release: Sep 9, 2023
  • Number of updates: 69
  • Update frequency: every 38.5 days
  • Top authors: ghera74 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

100+ active /8,815 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.29ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Exporter for Danea
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.08 ▲0.06
Dashboard /wp-admin3.33 ▲0.0348.74 ▼3.43
Posts /wp-admin/edit.php3.38 ▲0.0348.40 ▲2.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.56 ▼8.75
Media Library /wp-admin/upload.php3.25 ▲0.0340.08 ▲8.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 170 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Exporter for Danea
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.29 ▼1.002.62 ▲0.7942.00 ▼4.10
Dashboard /wp-admin2,205 ▲175.80 ▼0.0997.66 ▼16.4942.02 ▼2.00
Posts /wp-admin/edit.php2,094 ▲52.05 ▲0.0539.29 ▲0.3036.29 ▲1.52
Add New Post /wp-admin/post-new.php1,530 ▼323.08 ▼0.17651.71 ▼22.2658.78 ▼3.08
Media Library /wp-admin/upload.php1,393 ▲54.20 ▼0.0096.28 ▲2.0243.76 ▲1.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/build/bump-version.php
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Metadata' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/Plugin/PluginInfo.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-exporter-for-danea/includes/ilghera-notice/class-ilghera-notice.php:214
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\DebugBar\\Panel' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/DebugBar/PluginPanel.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-exporter-for-danea/includes/wcexd-suppliers-download.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\UpdateChecker' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/Theme/UpdateChecker.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Vcs\\Api' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/Vcs/GitLabApi.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Theme\\UpdateChecker' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/Vcs/ThemeUpdateChecker.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\InstalledPackage' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/Plugin/Package.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Ilghera_Notice' not found in wp-content/plugins/wc-exporter-for-danea/includes/ilghera-notice/extension.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\DebugBar\\Extension' not found in wp-content/plugins/wc-exporter-for-danea/vendor/plugin-update-checker/Puc/v5p2/DebugBar/PluginExtension.php:9

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: exporter, gestionale, shop, products, danea easyfatt...

wc-exporter-for-danea/wc-exporter-for-danea.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce Exporter for Danea" version 1.5.1
You should first fix the following items:
  • Git Repository: An alternative Git repository was detected
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

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 detected12,542 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
PHP602,0953,0947,176
JavaScript9356652,816
PO File252552781,172
CSS714348756
Markdown31110336
JSON780261
XML14413
YAML13412

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity22.22
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces8
Interfaces1
Traits3
Classes42
▷ Abstract classes511.90%
▷ Concrete classes3788.10%
▷ Final classes00.00%
Methods453
▷ Static methods5411.92%
▷ Public methods29765.56%
▷ Protected methods13930.68%
▷ Private methods173.75%
Functions19
▷ Named functions1263.16%
▷ Anonymous functions736.84%
Constants14
▷ Global constants321.43%
▷ Class constants1178.57%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/harvesthq/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
js/tzCheckbox/jquery.tzCheckbox/background.png4.96KB2.59KB▼ 47.82%
js/tzCheckbox/img/page_bg.png0.19KB0.26KB0.00%
includes/ilghera-notice/images/ilGhera-icon-40px.png10.48KB1.70KB▼ 83.74%
js/tzCheckbox/jquery.tzCheckbox/background-small.png3.88KB2.22KB▼ 42.84%