79% addonify-quick-view

Code Review | Addonify - Quick View For WooCommerce

WordPress plugin Addonify - Quick View For WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: addonify-quick-view
  • Plugin version: 1.2.14
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.0
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 34
  • Update frequency: every 34.7 days
  • Top authors: addonify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /25,944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.67ms] Passed 4 tests

A check of server-side resources used by Addonify - Quick View For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0834.41 ▼8.93
Dashboard /wp-admin3.38 ▲0.0348.43 ▼9.98
Posts /wp-admin/edit.php3.49 ▲0.1450.26 ▼0.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.82 ▼7.58
Media Library /wp-admin/upload.php3.30 ▲0.0738.19 ▲7.69

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Addonify - Quick View For WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.22 ▼0.132.02 ▲0.3239.73 ▼3.13
Dashboard /wp-admin2,204 ▲245.62 ▼0.0286.55 ▼9.9941.10 ▼10.85
Posts /wp-admin/edit.php2,107 ▲71.98 ▲0.0141.08 ▼0.1036.34 ▲0.10
Add New Post /wp-admin/post-new.php1,532 ▲623.28 ▲0.21677.11 ▲76.9253.46 ▼0.27
Media Library /wp-admin/upload.php1,406 ▲94.20 ▼0.0598.45 ▼0.6043.35 ▲2.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/addonify-quick-view/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonify-quick-view/includes/addonify-quick-view-template-hooks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/addonify-quick-view/includes/functions/settings.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-quick-view/includes/functions/fields/modal-box.php:555
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-quick-view/includes/functions/fields/misc-buttons.php:136
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-quick-view/includes/functions/fields/general.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-quick-view/includes/functions/fields/button.php:163
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/addonify-quick-view/includes/udp/init.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-quick-view/includes/functions/fields/custom-css.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'Detection\\MobileDetect' not found in wp-content/plugins/addonify-quick-view/vendor/mobiledetect/mobiledetectlib/export/dump_magic_methods.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce quick view, quickview, woocommerce, quick view, products quick view

addonify-quick-view/addonify-quick-view.php Passed 13 tests

The entry point to "Addonify - Quick View For WooCommerce" version 1.2.14 is a PHP file that has certain tags in its header comment area
120 characters long description:
Addonify WooCommerce Quick View plugin adds functionality to have a WooCommerce product quick preview on a modal window.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,382 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP388132,3623,492
Sass1337381,220
Markdown51430329
JSON300306
YAML11015
SVG10010
CSS4025
JavaScript5025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.93
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods124
▷ Static methods2721.77%
▷ Public methods10887.10%
▷ Protected methods21.61%
▷ Private methods1411.29%
Functions50
▷ Named functions3978.00%
▷ Anonymous functions1122.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin