99% easy-customizer-for-woocommerce-pdf-invoices

Code Review | Easy Customizer for WooCommerce PDF Invoices & Packing Slips

WordPress plugin Easy Customizer for WooCommerce PDF Invoices & Packing Slips scored 99% from 54 tests.

About plugin

  • Plugin page: easy-customizer-f...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.9.5
  • WordPress version: 5.8.1
  • First release: Apr 21, 2018
  • Latest release: Apr 22, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: disespubli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 843 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.25MB] [CPU: ▼138.61ms] Passed 4 tests

This is a short check of server-side resources used by Easy Customizer for WooCommerce PDF Invoices & Packing Slips
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.09 ▲0.3735.12 ▲13.31
Dashboard /wp-admin3.31 ▲0.2542.04 ▼4.06
Posts /wp-admin/edit.php3.37 ▲0.2547.39 ▲2.65
Add New Post /wp-admin/post-new.php5.67 ▲0.2387.17 ▼554.21
Media Library /wp-admin/upload.php3.26 ▲0.2535.40 ▲1.20

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Easy Customizer for WooCommerce PDF Invoices & Packing Slips: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.86 ▼0.2310.21 ▲1.5247.29 ▼1.01
Dashboard /wp-admin2,973 ▲426.03 ▲0.08133.18 ▼10.82115.56 ▲1.09
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0067.01 ▼3.3594.34 ▲8.65
Add New Post /wp-admin/post-new.php1,676 ▲17618.83 ▲0.29374.28 ▲6.71104.69 ▼5.85
Media Library /wp-admin/upload.php1,810 ▲35.05 ▲0.04143.33 ▼3.96117.77 ▲10.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
No output text or server-side errors detected 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 Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: woo, woocommerce, invoices, woocommerce invoices, pdf invoices...

easy-customizer-for-woocommerce-pdf-invoices/easy-customizer-wpi.php 69% from 13 tests

The entry point to "Easy Customizer for WooCommerce PDF Invoices & Packing Slips" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "2.6")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-customizer-for-woocommerce-pdf-invoices.php" instead of "easy-customizer-wpi.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 272 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
No dangerous file extensions were detected2,252 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP37271461,439
CSS311954434
PO File1163165379

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/invoice-folder.png1.88KB1.58KB▼ 15.60%
images/invoice-tbheader.png3.04KB1.96KB▼ 35.58%
images/plugin-file-css.png4.40KB3.42KB▼ 22.23%
images/status-panel.png1.54KB1.88KB0.00%
images/invoice-recipient.png3.22KB1.95KB▼ 39.36%