89% invoicing-quotes

Code Review | Quotes Addon for GetPaid

WordPress plugin Quotes Addon for GetPaid scored 89% from 54 tests.

About plugin

  • Plugin page: invoicing-quotes
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: Apr 3, 2023
  • Number of updates: 16
  • Update frequency: every 127.8 days
  • Top authors: stiofansisland (93.75%)wpdev10 (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 11,072 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
Install script ran successfully

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

Analyzing server-side resources used by Quotes Addon for GetPaid
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.62 ▼1.05
Dashboard /wp-admin3.32 ▲0.0147.16 ▼0.10
Posts /wp-admin/edit.php3.37 ▲0.0145.46 ▼1.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.68 ▼9.05
Media Library /wp-admin/upload.php3.24 ▲0.0134.64 ▼0.57

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Quotes Addon for GetPaid
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.35 ▼0.834.58 ▲2.9639.49 ▼1.98
Dashboard /wp-admin2,209 ▲215.81 ▼0.09100.13 ▼1.1237.91 ▼2.49
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0333.99 ▼1.2834.81 ▲0.92
Add New Post /wp-admin/post-new.php1,534 ▲123.35 ▲0.16675.39 ▲27.2860.81 ▼6.87
Media Library /wp-admin/upload.php1,391 ▲34.26 ▼0.03103.11 ▲3.7545.51 ▲0.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 | 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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: A description for screenshot #4 is required in invoicing-quotes/assets to your readme.txt
  • Tags: There are too many tags (32 tag instead of maximum 10)
Please take inspiration from this readme.txt

invoicing-quotes/wpinv-quote.php 85% from 13 tests

"Quotes Addon for GetPaid" version 2.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("invoicing-quotes.php" instead of "wpinv-quote.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,751 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP194938071,406
PO File1147170345

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.36
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods75
▷ Static methods45.33%
▷ Public methods6992.00%
▷ Protected methods68.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin