94% finest-quickview

Code Review | WooCommerce Quick View

WordPress plugin WooCommerce Quick View scored 94% from 54 tests.

About plugin

  • Plugin page: finest-quickview
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Nov 12, 2021
  • Latest release: Nov 17, 2021
  • Number of updates: 21
  • Update frequency: every 0.2 days
  • Top authors: finestdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 34 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

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

Analyzing server-side resources used by WooCommerce Quick View
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0434.61 ▲0.23
Dashboard /wp-admin3.09 ▲0.0331.46 ▼11.80
Posts /wp-admin/edit.php3.14 ▲0.0338.99 ▼3.73
Add New Post /wp-admin/post-new.php5.45 ▲0.0287.28 ▼553.31
Media Library /wp-admin/upload.php3.03 ▲0.0334.51 ▲2.07

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Quick View
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,894 ▲29818.68 ▲3.1820.28 ▲11.7253.45 ▲4.46
Dashboard /wp-admin2,983 ▲525.90 ▼0.06153.77 ▲7.84113.38 ▼0.69
Posts /wp-admin/edit.php2,749 ▲102.70 ▲0.0270.91 ▲3.6992.79 ▲0.23
Add New Post /wp-admin/post-new.php1,679 ▼418.84 ▲0.03349.15 ▼33.36115.07 ▼0.31
Media Library /wp-admin/upload.php1,817 ▲105.01 ▼0.03154.81 ▲0.98119.75 ▼9.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/finest-quickview/inc/function.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/finest-quickview/init.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/finest-quickview/inc/settings.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: products quick view, free quick view, quick views ingle product

finest-quickview/finest-quickview.php Passed 13 tests

The entry point to "WooCommerce Quick View" version 1.0.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
WooCommerce Quick View plugin is a simple and clean design.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected813 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS56718534
PHP54032194
JavaScript491585

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin