78% auto-quote

Code Review | Auto Quote

WordPress plugin Auto Quote scored78%from 54 tests.

About plugin

  • Plugin page: auto-quote
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Sep 25, 2021
  • Number of updates: 28
  • Update frequency: every 32.6 days
  • Top authors: iarovuo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,770 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.24ms] Passed 4 tests

An overview of server-side resources used by Auto Quote
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.45 ▼4.92
Dashboard /wp-admin3.51 ▲0.2052.14 ▲6.14
Posts /wp-admin/edit.php3.62 ▲0.2651.77 ▼3.57
Add New Post /wp-admin/post-new.php6.09 ▲0.2089.78 ▼9.69
Media Library /wp-admin/upload.php3.43 ▲0.2039.75 ▲5.22
Auto Quote /wp-admin/options-general.php?page=gritonl_auto_quote3.4031.93

Server storage [IO: ▲0.52MB] [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: 133 new files
Database: no new tables, 39 new options
New WordPress options
gritonl_auto_quote_products
widget_recent-comments
gritonl_auto_quote_footer
gritonl_auto_quote_pdowner
gritonl_auto_quote_css
gritonl_auto_quote_redirurl
gritonl_auto_quote_pddays
gritonl_auto_quote_email_subject
gritonl_auto_quote_hsapikey
gritonl_auto_quote_pdusers
...

Browser metrics Passed 4 tests

Checking browser requirements for Auto Quote
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.24 ▼1.311.70 ▼0.1941.11 ▼3.30
Dashboard /wp-admin2,228 ▲254.86 ▼0.03104.89 ▼2.4043.21 ▲4.19
Posts /wp-admin/edit.php2,104 ▲72.01 ▼0.0233.57 ▼8.1835.31 ▼2.84
Add New Post /wp-admin/post-new.php1,548 ▲1723.23 ▲0.43672.27 ▲76.6363.06 ▲11.08
Media Library /wp-admin/upload.php1,401 ▲14.31 ▲0.0498.20 ▼9.7545.43 ▼0.62
Auto Quote /wp-admin/options-general.php?page=gritonl_auto_quote1,3432.0326.2233.36

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto6.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto2.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto4.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto3.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto5.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto1.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/makefont.php
    • > /wp-content/plugins/auto-quote/fpdf/tutorial/tuto7.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/auto-quote/fpdf/makefont/ttfparser.php on line 382

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6, #7 in auto-quote/assets to your readme.txt
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

auto-quote/auto_quote.php 92% from 13 tests

The main PHP file in "Auto Quote" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-quote.php" instead of "auto_quote.php")

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
Good job! No executable or dangerous file extensions detected7,603 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
PHP293304274,307
HTML597203,236
CSS35142
JavaScript20018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity57.88
▷ Minimum class complexity1.00
▷ Maximum class complexity338.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods146
▷ Static methods00.00%
▷ Public methods10873.97%
▷ Protected methods3826.03%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
fpdf/tutorial/logo.png2.32KB2.26KB▼ 2.57%