83% comparatore-prezzi-woocommerce

Code Review | Comparatore Prezzi WooCommerce - Generatore Data Feed XML e CSV per WooCommerce

WordPress plugin Comparatore Prezzi WooCommerce - Generatore Data Feed XML e CSV per WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: comparatore-prezz...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Aug 10, 2017
  • Latest release: Aug 10, 2017
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: wemiura (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.58ms] Passed 4 tests

A check of server-side resources used by Comparatore Prezzi WooCommerce - Generatore Data Feed XML e CSV per WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.03 ▼2.50
Dashboard /wp-admin3.31 ▼0.0443.74 ▼17.62
Posts /wp-admin/edit.php3.36 ▲0.0046.88 ▼1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.83 ▼4.99
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▲0.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Comparatore Prezzi WooCommerce - Generatore Data Feed XML e CSV per WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.061.65 ▼0.0341.46 ▲2.98
Dashboard /wp-admin2,209 ▲245.85 ▼0.05107.93 ▲7.5142.54 ▼1.28
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0439.90 ▼0.3737.66 ▲2.91
Add New Post /wp-admin/post-new.php1,514 ▼1417.45 ▼0.96628.48 ▲22.5360.87 ▲13.48
Media Library /wp-admin/upload.php1,385 ▲34.28 ▲0.06103.58 ▲7.7145.05 ▲0.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/comparatore-prezzi-woocommerce/comparatore-prezzi-woocommerce-free.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comparatore-prezzi-woocommerce/admin/cpw-admin-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comparatore-prezzi-woocommerce/admin/cpw-admin-brand.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comparatore-prezzi-woocommerce/admin/cpw-admin-ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comparatore-prezzi-woocommerce/public/csv/cpw-public-csv.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comparatore-prezzi-woocommerce/admin/cpw-admin-menu.php:5

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

readme.txt Passed 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
6 plugin tags: trovaprezzi, drezzy, shoppydoo, trova prezzi, plugin woocommerce...

comparatore-prezzi-woocommerce/comparatore-prezzi-woocommerce-free.php 69% from 13 tests

The main PHP script in "Comparatore Prezzi WooCommerce - Generatore Data Feed XML e CSV per WooCommerce" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("comparatore-prezzi-woocommerce.php" instead of "comparatore-prezzi-woocommerce-free.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 79 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
There were no executable files found in this plugin17,004 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON10013,870
PHP7445221,674
SVG100542
CSS44718541
JavaScript55111377

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo_tp.png8.28KB2.92KB▼ 64.66%
assets/img/moneybag.png0.89KB0.78KB▼ 12.54%