78% enweby-pretty-product-quick-view

Code Review | Enweby Pretty Product Quick View for WooCommerce

WordPress plugin Enweby Pretty Product Quick View for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: enweby-pretty-pro...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 19, 2021
  • Latest release: May 26, 2023
  • Number of updates: 18
  • Update frequency: every 35.9 days
  • Top authors: enweby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /464 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
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼3.70ms] Passed 4 tests

A check of server-side resources used by Enweby Pretty Product Quick View for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1439.51 ▼3.30
Dashboard /wp-admin3.70 ▲0.3948.63 ▼2.15
Posts /wp-admin/edit.php3.75 ▲0.3951.20 ▼3.38
Add New Post /wp-admin/post-new.php6.26 ▲0.3789.29 ▼5.95
Media Library /wp-admin/upload.php3.56 ▲0.3339.71 ▲0.75
Quick View /wp-admin/admin.php?page=enweby-pretty-product-quick-view&page=enweby-pretty-product-quick-view3.5334.25

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Enweby Pretty Product Quick View for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,035 ▲30013.62 ▼0.6710.43 ▲8.5241.24 ▼5.17
Dashboard /wp-admin2,219 ▲344.92 ▼0.94105.16 ▲0.5637.89 ▼1.72
Posts /wp-admin/edit.php2,108 ▲192.00 ▲0.0242.59 ▲2.6638.16 ▲1.53
Add New Post /wp-admin/post-new.php1,527 ▲1323.44 ▲5.97689.27 ▼0.9847.98 ▼5.59
Media Library /wp-admin/upload.php1,401 ▲134.26 ▲0.0498.48 ▼0.1342.30 ▼0.32
Quick View /wp-admin/admin.php?page=enweby-pretty-product-quick-view&page=enweby-pretty-product-quick-view1,3922.7261.5227.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/enweby-pretty-product-quick-view/admin/partials/enweby-pretty-product-quick-view-admin-display.php
    • > /wp-content/plugins/enweby-pretty-product-quick-view/admin/partials/wpqv-main-menu.php
    • > /wp-content/plugins/enweby-pretty-product-quick-view/public/partials/enweby-pretty-product-quick-view-public-display.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/enweby-pretty-product-quick-view/includes/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/enweby-pretty-product-quick-view/public/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/enweby-pretty-product-quick-view/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/enweby-pretty-product-quick-view/admin/index.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected

enweby-pretty-product-quick-view/enweby-pretty-product-quick-view.php 92% from 13 tests

The main file in "Enweby Pretty Product Quick View for WooCommerce" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)

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
Everything looks great! No dangerous files found in this plugin1,784 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP144859011,299
CSS21811203
Markdown1140191
JavaScript2267591

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.30
Average class complexity15.88
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods112
▷ Static methods21.79%
▷ Public methods10492.86%
▷ Protected methods32.68%
▷ Private methods54.46%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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