99% quick-view-for-woocommerce

Code Review | Quick View For Woocommerce

WordPress plugin Quick View For Woocommerce scored 99% from 54 tests.

About plugin

  • Plugin page: quick-view-for-wo...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.8
  • WordPress version: 5.8.1
  • First release: May 6, 2021
  • Latest release: Nov 12, 2021
  • Number of updates: 13
  • Update frequency: every 14.7 days
  • Top authors: acowebscd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 472 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.11MB] [CPU: ▼145.78ms] Passed 4 tests

Server-side resources used by Quick View For Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1934.60 ▲14.37
Dashboard /wp-admin3.16 ▲0.1042.55 ▼11.81
Posts /wp-admin/edit.php3.27 ▲0.1546.83 ▼10.06
Add New Post /wp-admin/post-new.php5.53 ▲0.0998.10 ▼566.53
Media Library /wp-admin/upload.php3.10 ▲0.1044.16 ▲5.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Quick View For Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲9115.94 ▲0.457.74 ▼1.9051.02 ▼4.44
Dashboard /wp-admin2,980 ▲435.97 ▼0.01143.38 ▼16.12108.48 ▼6.93
Posts /wp-admin/edit.php2,775 ▲362.68 ▼0.0176.45 ▼1.9398.09 ▲10.11
Add New Post /wp-admin/post-new.php1,508 ▼17516.30 ▼2.56324.66 ▼50.02122.53 ▲6.46
Media Library /wp-admin/upload.php1,842 ▲324.98 ▼0.03165.73 ▲0.27113.76 ▼10.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

quick-view-for-woocommerce/start.php 85% from 13 tests

Analyzing the main PHP file in "Quick View For Woocommerce" version 1.0.8
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-view-for-woocommerce.php" instead of "start.php")
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "7.0 or higher")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,284 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP92395061,049
CSS2118778
JavaScript33136236
SVG1400131
PO File1434790

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity39.60
▷ Minimum class complexity13.00
▷ Maximum class complexity105.00
Average method complexity5.11
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods36.25%
▷ Public methods4797.92%
▷ Protected methods00.00%
▷ Private methods12.08%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin