72% quick-view-products

Code Review | Quick View Products

WordPress plugin Quick View Products scored72%from 54 tests.

About plugin

  • Plugin page: quick-view-products
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.4
  • WordPress version: 6.3.1
  • First release: May 21, 2020
  • Latest release: May 21, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: desparza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /417 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.11ms] Passed 4 tests

Server-side resources used by Quick View Products
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.26 ▲2.86
Dashboard /wp-admin3.34 ▲0.0349.66 ▼7.55
Posts /wp-admin/edit.php3.39 ▲0.0351.83 ▲0.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.43 ▲7.00
Media Library /wp-admin/upload.php3.26 ▲0.0341.28 ▲3.92
Quick View Products /wp-admin/admin.php?page=dewp-omn-admin-settings3.2135.53
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.2333.52

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/quick-view-products/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Quick View Products
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.28 ▼1.084.92 ▲3.0838.86 ▼6.42
Dashboard /wp-admin2,246 ▲434.86 ▼0.02109.23 ▼7.8752.49 ▲9.04
Posts /wp-admin/edit.php2,125 ▲252.09 ▲0.0840.95 ▲2.3439.00 ▲6.01
Add New Post /wp-admin/post-new.php1,561 ▲1623.39 ▼0.27740.37 ▲8.3055.18 ▼1.46
Media Library /wp-admin/upload.php1,425 ▲254.23 ▼0.0594.71 ▼12.4143.30 ▼2.45
Quick View Products /wp-admin/admin.php?page=dewp-omn-admin-settings8422.0324.5429.56
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu8172.0225.3431.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=dewp-omn-admin-settings
    • > Notice in wp-content/plugins/quick-view-products/includes/wc-quickview-product-admin.php+109
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quick-view-products/wc-quickview-product.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-view-products/includes/wc-quickview-product-admin.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

quick-view-products/wc-quickview-product.php 85% from 13 tests

Analyzing the main PHP file in "Quick View Products" version 1.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-view-products.php" instead of "wc-quickview-product.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 191 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 plugin590 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS3637418
PHP44435171
JavaScript1061

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected