78% themefarmer-woocommerce-quick-view

Code Review | ThemeFarmer WooCommerce Quick View

WordPress plugin ThemeFarmer WooCommerce Quick View scored78%from 54 tests.

About plugin

  • Plugin page: themefarmer-wooco...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Dec 3, 2016
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: ThemeFarmer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /876 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by ThemeFarmer WooCommerce Quick View
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.59 ▼8.13
Dashboard /wp-admin3.34 ▲0.0352.72 ▲2.25
Posts /wp-admin/edit.php3.39 ▲0.0346.17 ▼8.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.74 ▼0.75
Media Library /wp-admin/upload.php3.26 ▲0.0334.82 ▼0.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for ThemeFarmer WooCommerce Quick View
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.52 ▼0.838.73 ▲7.0144.33 ▲1.52
Dashboard /wp-admin2,209 ▲325.50 ▼0.0886.94 ▼6.9041.49 ▲0.94
Posts /wp-admin/edit.php2,111 ▲82.02 ▲0.0033.51 ▼4.6333.53 ▼3.29
Add New Post /wp-admin/post-new.php1,547 ▲2118.36 ▼5.28616.42 ▼31.3962.95 ▲0.77
Media Library /wp-admin/upload.php1,417 ▲234.17 ▼0.05100.95 ▲2.5147.15 ▲1.72

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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/themefarmer-woocommerce-quick-view/templates/advance-quick-view-model.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/themefarmer-woocommerce-quick-view/admin/option-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/themefarmer-woocommerce-quick-view/templates/advance-quick-view-button.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/themefarmer-woocommerce-quick-view/templates/advance-quick-view-product-content.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

themefarmer-woocommerce-quick-view/plugin.php 92% from 13 tests

The main file in "ThemeFarmer WooCommerce Quick View" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("themefarmer-woocommerce-quick-view.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected247 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP63128144
CSS210170
JavaScript14133

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin