89% contribuinte-checkout

Code Review | Contribuinte Checkout

WordPress plugin Contribuinte Checkout scored89%from 54 tests.

About plugin

  • Plugin page: contribuinte-chec...
  • Plugin version: 1.0.50
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2020
  • Latest release: Sep 12, 2023
  • Number of updates: 22
  • Update frequency: every 52.8 days
  • Top authors: molonidevteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Contribuinte Checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.25 ▲0.67
Dashboard /wp-admin3.31 ▲0.0042.89 ▼3.11
Posts /wp-admin/edit.php3.36 ▲0.0045.21 ▼4.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.21 ▼14.74
Media Library /wp-admin/upload.php3.23 ▲0.0032.99 ▼2.54

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

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

Browser metrics Passed 4 tests

Contribuinte Checkout: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.66 ▲0.311.71 ▲0.2042.39 ▲2.76
Dashboard /wp-admin2,192 ▲125.48 ▼0.1987.54 ▼1.1040.67 ▼8.32
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.1940.14 ▲1.9237.32 ▲4.88
Add New Post /wp-admin/post-new.php1,526 ▼523.52 ▲0.34651.69 ▼2.3662.62 ▲0.68
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0195.66 ▼2.5141.54 ▼0.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Contribuinte Checkout === )
  • Screenshots: These screenshots require images: #1 (Settings where you can change VAT field behaviour.), #2 (Customers can add their VAT to their billing information.), #3 (VAT field in admin page.), #4 (Vies Information in admin page.)
You can look at the official readme.txt

contribuinte-checkout/contribuinte-checkout.php Passed 13 tests

This is the main PHP file of "Contribuinte Checkout" version 1.0.50, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Add VAT information to your orders

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,300 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP152434501,060
PO File25058133
Markdown123084
JSON20023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.60
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods64
▷ Static methods69.38%
▷ Public methods6195.31%
▷ Protected methods00.00%
▷ Private methods34.69%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected