89% pec-cod-sdi-p-iva-cf-for-woocommerce

Code Review | PEC CODSDI PIVA CF

WordPress plugin PEC CODSDI PIVA CF scored 89% from 54 tests.

About plugin

  • Plugin page: pec-cod-sdi-p-iva...
  • Plugin version: 20210923...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Sep 23, 2021
  • Number of updates: 9
  • Update frequency: every 108.2 days
  • Top authors: pymsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,479 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.01MB] [CPU: ▼4.62ms] Passed 4 tests

An overview of server-side resources used by PEC CODSDI PIVA CF
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.54 ▲1.41
Dashboard /wp-admin3.32 ▲0.0148.45 ▲1.48
Posts /wp-admin/edit.php3.37 ▲0.0145.42 ▼5.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.72 ▼15.44
Media Library /wp-admin/upload.php3.24 ▲0.0135.10 ▲0.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

PEC CODSDI PIVA CF: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.061.69 ▲0.0943.53 ▼5.91
Dashboard /wp-admin2,206 ▲184.86 ▼0.02102.59 ▼2.8738.82 ▼5.26
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0233.76 ▼6.6136.25 ▼5.62
Add New Post /wp-admin/post-new.php1,537 ▲323.36 ▲0.11670.98 ▼17.6948.76 ▼3.51
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.04102.69 ▲5.3344.36 ▲1.23

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

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

pec-cod-sdi-p-iva-cf-for-woocommerce/pec-codsdi-piva-cf.php 77% from 13 tests

The main PHP script in "PEC CODSDI PIVA CF" version 20210923... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pec-cod-sdi-p-iva-cf-for-woocommerce.php" instead of "pec-codsdi-piva-cf.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20210923...")
  • Description: Please keep the plugin description shorter than 140 characters (currently 207 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 detected207 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210981207

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin