89% woo-invoices

Code Review | Woo Invoices - Quotes and Invoices

WordPress plugin Woo Invoices - Quotes and Invoices scored89%from 54 tests.

About plugin

  • Plugin page: woo-invoices
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: Jun 4, 2022
  • Number of updates: 64
  • Update frequency: every 34.6 days
  • Top authors: SlicedInvoices (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /48,126 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.08MB] [CPU: ▼3.80ms] Passed 4 tests

Analyzing server-side resources used by Woo Invoices - Quotes and Invoices
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.88 ▼5.82
Dashboard /wp-admin3.38 ▲0.0853.03 ▲4.53
Posts /wp-admin/edit.php3.43 ▲0.0848.53 ▼1.91
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.21 ▼7.98
Media Library /wp-admin/upload.php3.30 ▲0.0836.33 ▲0.52

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Woo Invoices - Quotes and Invoices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.53 ▲0.181.84 ▲0.1244.55 ▲3.43
Dashboard /wp-admin2,213 ▲365.58 ▲0.0587.13 ▼9.0439.65 ▼0.88
Posts /wp-admin/edit.php2,118 ▲152.10 ▲0.1237.68 ▲2.2434.60 ▲0.41
Add New Post /wp-admin/post-new.php1,554 ▲2323.31 ▲0.15649.37 ▼13.7654.06 ▲1.69
Media Library /wp-admin/upload.php1,418 ▲214.17 ▲0.0198.44 ▼10.2247.96 ▲5.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can take inspiration from this readme.txt

woo-invoices/woo-invoices.php 92% from 13 tests

The entry point to "Woo Invoices - Quotes and Invoices" version 1.2.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "2.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,474 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP73895351,152
PO File17073286
CSS11036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity25.00
▷ Minimum class complexity6.00
▷ Maximum class complexity44.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin