78% formula04-woocommerce-quick-window

Code Review | Formula04 WooCommerce Quick Window

WordPress plugin Formula04 WooCommerce Quick Window scored78%from 54 tests.

About plugin

  • Plugin page: formula04-woocomm...
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2014
  • Latest release: Apr 2, 2015
  • Number of updates: 31
  • Update frequency: every 4.5 days
  • Top authors: Verb_Form04 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.63ms] Passed 4 tests

Server-side resources used by Formula04 WooCommerce Quick Window
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1149.72 ▲5.83
Dashboard /wp-admin3.43 ▲0.1247.71 ▼5.44
Posts /wp-admin/edit.php3.54 ▲0.1851.74 ▲3.91
Add New Post /wp-admin/post-new.php6.01 ▲0.1290.36 ▼14.81
Media Library /wp-admin/upload.php3.35 ▲0.1241.66 ▲7.89
F04 Quick Window /wp-admin/options-general.php?page=form04wooquickwindow3.3133.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Formula04 WooCommerce Quick Window
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.001.84 ▲0.1143.66 ▼4.13
Dashboard /wp-admin2,207 ▲255.81 ▼0.04104.46 ▲3.3038.56 ▼6.45
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.1039.75 ▼4.3734.99 ▼1.09
Add New Post /wp-admin/post-new.php1,536 ▼623.30 ▲5.05687.32 ▲67.0462.51 ▲5.70
Media Library /wp-admin/upload.php1,386 ▲44.25 ▼0.11106.99 ▲9.0946.79 ▲2.11
F04 Quick Window /wp-admin/options-general.php?page=form04wooquickwindow8912.0521.5825.66

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/formula04-woocommerce-quick-window/formula04_quickwindow.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/formula04-woocommerce-quick-window/formula04_quickwindow_template.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: popup, pop up, woocommerce

formula04-woocommerce-quick-window/formula04_quickwindow.php 85% from 13 tests

The principal PHP file in "Formula04 WooCommerce Quick Window" v. 2.0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 255 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("formula04-woocommerce-quick-window.php" instead of "formula04_quickwindow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin806 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2396215800
XML1004
JavaScript1122

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected