84% quickswish

Code Review | QuickSwish - WooCommerce Product Quick View

WordPress plugin QuickSwish - WooCommerce Product Quick View scored84%from 54 tests.

About plugin

  • Plugin page: quickswish
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Aug 1, 2023
  • Number of updates: 20
  • Update frequency: every 41.7 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,295 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.63MB] [CPU: ▼1.65ms] 75% from 4 tests

A check of server-side resources used by QuickSwish - WooCommerce Product Quick View
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,368.97ms on /wp-admin/admin.php?page=recommendations)
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3038.11 ▲1.08
Dashboard /wp-admin4.06 ▲0.7553.52 ▲6.32
Posts /wp-admin/edit.php4.11 ▲0.7560.44 ▲5.45
Add New Post /wp-admin/post-new.php6.63 ▲0.7485.96 ▼18.52
Media Library /wp-admin/upload.php3.96 ▲0.7238.76 ▲5.41
Recommendations /wp-admin/admin.php?page=recommendations8.261,368.97

Server storage [IO: ▲0.56MB] [DB: ▲0.67MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
quickswish_style_tab
quickswish_version
quickswish_installed
can_compress_scripts
quickswish_modal_setting_tabs
quickswish_setting_tabs
...

Browser metrics Passed 4 tests

An overview of browser requirements for QuickSwish - WooCommerce Product Quick View
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲24415.01 ▲0.621.73 ▲0.0240.91 ▲2.96
Dashboard /wp-admin2,399 ▲2116.72 ▲1.81123.19 ▲19.1338.81 ▼2.60
Posts /wp-admin/edit.php2,309 ▲2203.58 ▲1.5950.94 ▲8.7534.50 ▼1.73
Add New Post /wp-admin/post-new.php1,560 ▲2723.43 ▲0.24664.17 ▲61.0537.21 ▼14.99
Media Library /wp-admin/upload.php1,449 ▲584.40 ▲0.2082.21 ▼20.8641.44 ▼2.84
Recommendations /wp-admin/admin.php?page=recommendations2,1003.3547.4793.93
Settings /wp-admin/admin.php?page=quickswish#settings2,9334.10108.18115.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 11 options
    • quickswish_modal_setting_tabs
    • widget_theysaidso_widget
    • quickswish_style_tab
    • db_upgraded
    • quickswish_installed
    • quickswish_version
    • widget_recent-posts
    • theysaidso_admin_options
    • quickswish_setting_tabs
    • can_compress_scripts
    • ...

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/quickswish/includes/templates/quickswish-button.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce quick view, quick view, product popup, woocommerce, product quick view

quickswish/quickswish.php Passed 13 tests

The primary PHP file in "QuickSwish - WooCommerce Product Quick View" version 1.1.1 is used by WordPress to initiate all plugin functionality
47 characters long description:
WooCommerce Product quick view WordPress plugin

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
Everything looks great! No dangerous files found in this plugin3,751 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP317829232,856
CSS3327477
JavaScript48593335
SVG22044
YAML22034
JSON1005

PHP code Passed 2 tests

Analyzing 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.41
Average class complexity17.16
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes15.26%
Methods151
▷ Static methods2717.88%
▷ Public methods14092.72%
▷ Protected methods00.00%
▷ Private methods117.28%
Functions17
▷ Named functions1376.47%
▷ Anonymous functions423.53%
Constants12
▷ Global constants975.00%
▷ Class constants325.00%
▷ Public constants3100.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
12 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/extensions/multicurrencypro.png19.01KB9.36KB▼ 50.77%
.wordpress-org/screenshot-5.png55.99KB58.01KB0.00%
assets/images/extensions/htmega-pro.png4.60KB4.78KB0.00%
assets/images/extensions/just-tables-pro.png1.02KB1.05KB0.00%
.wordpress-org/screenshot-2.png20.47KB21.14KB0.00%