84% cf7-woocommerce-product-list-dropdown

Code Review | cf7 woocommerce drop down products list

WordPress plugin cf7 woocommerce drop down products list scored84%from 54 tests.

About plugin

  • Plugin page: cf7-woocommerce-p...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: May 8, 2019
  • Number of updates: 8
  • Update frequency: every 42.9 days
  • Top authors: sortedpixel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.10ms] Passed 4 tests

Analyzing server-side resources used by cf7 woocommerce drop down products list
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.78 ▼1.05
Dashboard /wp-admin3.34 ▲0.0446.16 ▼2.91
Posts /wp-admin/edit.php3.39 ▲0.0448.74 ▼4.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.72 ▼20.02
Media Library /wp-admin/upload.php3.26 ▲0.0434.88 ▼0.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for cf7 woocommerce drop down products list
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.39 ▼1.262.02 ▲0.4030.79 ▼9.68
Dashboard /wp-admin2,216 ▲285.82 ▲0.92105.36 ▲0.5741.83 ▼1.91
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0140.44 ▼1.2239.56 ▲2.22
Add New Post /wp-admin/post-new.php1,427 ▼9222.11 ▼1.17501.49 ▼170.2348.36 ▼7.47
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.0892.33 ▼41.8040.15 ▼19.28

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/cf7-woocommerce-product-list-dropdown/cf7wpl.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid URI found ("paypal.me/sortedpixel")
Please take inspiration from this readme.txt

cf7-woocommerce-product-list-dropdown/cf7wpl.php 92% from 13 tests

The primary PHP file in "cf7 woocommerce drop down products list" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-woocommerce-product-list-dropdown.php" instead of "cf7wpl.php")

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
No dangerous file extensions were detected187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP226044187

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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
There were not PNG files found in your plugin