83% quicq

Code Review | Convert WebP & AVIF | Quicq | Best image optimizer and compression plugin | Improve your Google Pagespeed

WordPress plugin Convert WebP & AVIF | Quicq | Best image optimizer and compression plugin | Improve your Google Pagespeed scored83%from 54 tests.

About plugin

  • Plugin page: quicq
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2021
  • Latest release: Mar 20, 2023
  • Number of updates: 18
  • Update frequency: every 25.1 days
  • Top authors: sanderkah (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.50ms] Passed 4 tests

Server-side resources used by Convert WebP & AVIF | Quicq | Best image optimizer and compression plugin | Improve your Google Pagespeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.64 ▲4.22
Dashboard /wp-admin3.37 ▲0.0649.58 ▲0.43
Posts /wp-admin/edit.php3.48 ▲0.1250.32 ▲4.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.20 ▼12.46
Media Library /wp-admin/upload.php3.29 ▲0.0635.60 ▼2.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Convert WebP & AVIF | Quicq | Best image optimizer and compression plugin | Improve your Google Pagespeed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.34 ▼0.072.03 ▼0.1744.45 ▲0.23
Dashboard /wp-admin2,204 ▲305.54 ▼0.1388.24 ▼6.4445.14 ▲4.29
Posts /wp-admin/edit.php2,112 ▲92.07 ▲0.0336.04 ▼1.8338.81 ▲2.92
Add New Post /wp-admin/post-new.php1,538 ▲1223.03 ▼0.69665.06 ▼21.9756.57 ▼9.50
Media Library /wp-admin/upload.php1,415 ▲154.19 ▲0.01101.69 ▼2.6641.64 ▼3.08

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WPQAI_ASSETS - assumed 'WPQAI_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/quicq/templates/template-settings.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/quicq/templates/template-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quicq/templates/template-uninstallation-warning.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Get started within 5 minutes with Quicq)
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

quicq/quicq.php Passed 13 tests

Analyzing the main PHP file in "Convert WebP & AVIF | Quicq | Best image optimizer and compression plugin | Improve your Google Pagespeed" version 2.0.0
32 characters long description:
Quicq integration for Wordpress.

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
Good job! No executable or dangerous file extensions detected5,616 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG8004,092
CSS59731670
PHP97686431
PO File4112124316
JavaScript152107

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.83
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods623.08%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
14 PNG files occupy 1.12MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png85.97KB37.09KB▼ 56.86%
assets/icon-256x256.png3.48KB1.64KB▼ 52.76%
assets/screenshot-6.png95.00KB23.57KB▼ 75.20%
assets/images/quicq-afosto.png4.20KB1.98KB▼ 52.94%
assets/screenshot-1.png128.04KB38.77KB▼ 69.72%