90% corrispettivi-for-woocommerce

Code Review | Corrispettivi per WooCommerce

WordPress plugin Corrispettivi per WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: corrispettivi-for...
  • Plugin version: 0.7.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 26
  • Update frequency: every 27.4 days
  • Top authors: labdav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by Corrispettivi per WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.82 ▲1.82
Dashboard /wp-admin3.40 ▲0.0945.78 ▼6.21
Posts /wp-admin/edit.php3.51 ▲0.1649.09 ▲2.12
Add New Post /wp-admin/post-new.php5.98 ▲0.0981.39 ▼18.80
Media Library /wp-admin/upload.php3.32 ▲0.0934.13 ▲0.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Corrispettivi per WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.79 ▲0.411.81 ▼0.0745.15 ▼0.68
Dashboard /wp-admin2,210 ▲255.83 ▲0.8797.62 ▼32.1837.76 ▼17.14
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0237.60 ▲0.2734.95 ▼0.66
Add New Post /wp-admin/post-new.php1,540 ▲2023.31 ▲0.22691.29 ▲15.7851.39 ▼3.88
Media Library /wp-admin/upload.php1,398 ▲104.25 ▲0.0096.35 ▼5.5044.03 ▼2.10

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: registro dei corrispettivi, ldav, corrispettivi, woocommerce

corrispettivi-for-woocommerce/corrispettivi-for-woocommerce.php 92% from 13 tests

The main PHP script in "Corrispettivi per WooCommerce" version 0.7.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected567 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13520454
PO File1242495
JavaScript331818

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin