89% quick-view-for-woocommerce

Code Review | Quick View For Woocommerce

WordPress plugin Quick View For Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: quick-view-for-wo...
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.1
  • WordPress version: 6.3.1
  • First release: May 6, 2021
  • Latest release: Mar 7, 2023
  • Number of updates: 24
  • Update frequency: every 28.0 days
  • Top authors: acowebscd (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /5,321 total downloads

Benchmarks

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.62ms] 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 /3.54 ▲0.0839.69 ▲3.05
Dashboard /wp-admin3.43 ▲0.0851.19 ▼7.05
Posts /wp-admin/edit.php3.54 ▲0.1844.60 ▼3.36
Add New Post /wp-admin/post-new.php6.02 ▲0.1396.92 ▼4.14
Media Library /wp-admin/upload.php3.35 ▲0.1233.78 ▲0.09

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

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 /2,796 ▲1014.07 ▼0.281.84 ▼0.0544.04 ▲5.78
Dashboard /wp-admin2,202 ▲245.49 ▼0.1999.18 ▲3.4441.37 ▼5.05
Posts /wp-admin/edit.php2,114 ▲142.11 ▲0.1635.40 ▲1.0235.19 ▼0.69
Add New Post /wp-admin/post-new.php1,437 ▼10022.46 ▲4.30567.96 ▼76.0630.70 ▼55.22
Media Library /wp-admin/upload.php1,407 ▲74.28 ▲0.1194.90 ▲0.2438.35 ▼1.70

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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.2.4
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,745 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP92575231,179
CSS2158807
JavaScript44345422
PO File196104206
SVG1400131

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 107)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity42.40
▷ Minimum class complexity14.00
▷ Maximum class complexity107.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity107.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods50
▷ Static methods36.00%
▷ Public methods4998.00%
▷ Protected methods00.00%
▷ Private methods12.00%
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