10% fidelit-softwarefidelitycardit

Code Review | FidElìt - Software CRM per la fidelizzazione della clientela

WordPress plugin FidElìt - Software CRM per la fidelizzazione della clientela scored 10% from 54 tests.

About plugin

  • Plugin page: fidelit-softwaref...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Feb 10, 2016
  • Number of updates: 14
  • Update frequency: every 33.1 days
  • Top authors: gruppo.ambita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,817 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/fidelit-softwarefidelitycardit/common.php+25
    __autoload() is deprecated, use spl_autoload_register() instead

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

Analyzing server-side resources used by FidElìt - Software CRM per la fidelizzazione della clientela
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.25 ▲0.30
Dashboard /wp-admin3.31 ▲0.0048.04 ▲2.68
Posts /wp-admin/edit.php3.36 ▲0.0049.07 ▼1.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.46 ▼3.16
Media Library /wp-admin/upload.php3.23 ▲0.0035.01 ▲3.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for FidElìt - Software CRM per la fidelizzazione della clientela
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.191.63 ▼0.4439.78 ▼10.13
Dashboard /wp-admin2,206 ▲155.81 ▲0.9299.81 ▼6.9438.99 ▼2.26
Posts /wp-admin/edit.php2,089 ▼02.10 ▲0.0539.01 ▼2.7035.29 ▼2.28
Add New Post /wp-admin/post-new.php1,533 ▲323.07 ▲0.31629.35 ▲8.5951.28 ▲0.34
Media Library /wp-admin/upload.php1,385 ▲34.23 ▼0.1097.54 ▼3.6543.17 ▲0.34

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/fidelit-softwarefidelitycardit/json/registrazione.php
    • > /wp-content/plugins/fidelit-softwarefidelitycardit/json/modifica_profilo.php
    • > /wp-content/plugins/fidelit-softwarefidelitycardit/json/recupero_password.php
    • > /wp-content/plugins/fidelit-softwarefidelitycardit/json/login.php
    • > /wp-content/plugins/fidelit-softwarefidelitycardit/shortcodes/pulsante.php
    • > /wp-content/plugins/fidelit-softwarefidelitycardit/admin/content.php
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fidelit-softwarefidelitycardit/shortcodes/modifica_profilo.php on line 134
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fidelit-softwarefidelitycardit/admin/content.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fidelit-softwarefidelitycardit/common.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/fidelit-softwarefidelitycardit/install/uninstall.php:3
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fidelit-softwarefidelitycardit/shortcodes/situazione_card.php on line 69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/fidelit-softwarefidelitycardit/install/install.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fidelit-softwarefidelitycardit/common.php:6
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fidelit-softwarefidelitycardit/admin/init.php on line 34
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fidelit-softwarefidelitycardit/shortcodes/ultimi_movimenti_card.php on line 77
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fidelit-softwarefidelitycardit/shortcodes/registrazione.php on line 197

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

fidelit-softwarefidelitycardit/fidelit.php 92% from 13 tests

The entry point to "FidElìt - Software CRM per la fidelizzazione della clientela" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fidelit-softwarefidelitycardit.php" instead of "fidelit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,021 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP235561,2712,913
CSS1150108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity58.33
▷ Minimum class complexity1.00
▷ Maximum class complexity215.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods143
▷ Static methods10.70%
▷ Public methods13393.01%
▷ Protected methods85.59%
▷ Private methods21.40%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants7
▷ Global constants228.57%
▷ Class constants571.43%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/favicon-16.png1.66KB0.84KB▼ 49.06%
admin/images/favicon-32.png3.01KB1.58KB▼ 47.44%
admin/images/favicon-blu-16.png0.24KB0.25KB0.00%
admin/images/favicon-bianca-16.png0.24KB0.25KB0.00%
images/favicon-bianca-16.png0.24KB0.25KB0.00%