83% woo-codice-fiscale

Code Review | WOO Codice Fiscale

WordPress plugin WOO Codice Fiscale scored83%from 54 tests.

About plugin

  • Plugin page: woo-codice-fiscale
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-4.5
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: May 23, 2016
  • Number of updates: 47
  • Update frequency: every 4.1 days
  • Top authors: andrew_fisher (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,401 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WOO Codice Fiscale
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.17 ▼4.63
Dashboard /wp-admin3.31 ▲0.0042.91 ▼5.54
Posts /wp-admin/edit.php3.36 ▲0.0043.46 ▼6.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.54 ▼8.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.08 ▼1.86

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WOO Codice Fiscale
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.37 ▼1.001.99 ▲0.0644.33 ▲0.59
Dashboard /wp-admin2,206 ▲185.84 ▲0.0397.48 ▼7.0139.89 ▼3.57
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.1239.29 ▼0.2431.64 ▼1.43
Add New Post /wp-admin/post-new.php1,533 ▼123.08 ▼0.09655.98 ▼24.2059.76 ▼7.66
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0299.84 ▼1.5440.89 ▼4.89

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 detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-codice-fiscale/woo-codice-fiscale.php:35

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (The checkout mandatory field CF and optional P IVA) image not found
You can look at the official readme.txt

woo-codice-fiscale/woo-codice-fiscale.php 85% from 13 tests

"WOO Codice Fiscale" version 1.6.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.2")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin317 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24040171
PO File23682114
JavaScript114332

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin