89% woo-invoice-me

Code Review | WooCommere Invoice Me

WordPress plugin WooCommere Invoice Me scored89%from 54 tests.

About plugin

  • Plugin page: woo-invoice-me
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.3-5.8
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Aug 23, 2021
  • Number of updates: 5
  • Update frequency: every 274.0 days
  • Top authors: anasbinmukim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.76ms] Passed 4 tests

This is a short check of server-side resources used by WooCommere Invoice Me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.89 ▼1.31
Dashboard /wp-admin3.32 ▲0.0148.86 ▼4.39
Posts /wp-admin/edit.php3.37 ▲0.0153.51 ▲1.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.83 ▲1.69
Media Library /wp-admin/upload.php3.24 ▲0.0136.75 ▼2.99

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommere Invoice Me
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.372.12 ▲0.5042.17 ▼1.54
Dashboard /wp-admin2,192 ▲155.64 ▼0.0391.64 ▼10.1144.16 ▼0.33
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0140.15 ▲4.2536.19 ▲0.33
Add New Post /wp-admin/post-new.php1,404 ▼12217.79 ▼5.72578.04 ▼179.3255.67 ▼3.22
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0198.02 ▼2.5843.70 ▲2.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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: manual invoice, invoice me, pay later, buy first, group customers...

woo-invoice-me/woo-invoice-me.php 92% from 13 tests

The main PHP script in "WooCommere Invoice Me" version 2.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.2.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin243 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP380138243

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.00
▷ Minimum class complexity6.00
▷ Maximum class complexity18.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.72MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/invoiceme.png19.41KB7.51KB▼ 61.32%
assets/screenshot-3.png89.90KB26.01KB▼ 71.07%
assets/screenshot-2.png197.04KB54.40KB▼ 72.39%
assets/screenshot-1.png239.73KB66.39KB▼ 72.31%
assets/screenshot-4.png189.25KB53.97KB▼ 71.48%