90% cultivate-for-woocommerce

Code Review | Cultivate for WooCommerce

WordPress plugin Cultivate for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: cultivate-for-woo...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 29, 2021
  • Latest release: Jan 25, 2022
  • Number of updates: 6
  • Update frequency: every 20.0 days
  • Top authors: cultivateryan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.63ms] Passed 4 tests

Server-side resources used by Cultivate for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.85 ▼0.58
Dashboard /wp-admin3.31 ▲0.0055.10 ▼0.23
Posts /wp-admin/edit.php3.36 ▲0.0050.03 ▼1.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.39 ▼17.68
Media Library /wp-admin/upload.php3.23 ▲0.0034.28 ▼2.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Cultivate for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.042.19 ▲0.4141.29 ▼2.22
Dashboard /wp-admin2,195 ▲215.55 ▼0.0285.49 ▼8.2139.80 ▼8.74
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0133.97 ▼1.7536.42 ▼2.66
Add New Post /wp-admin/post-new.php1,404 ▼12217.85 ▼3.21612.99 ▼130.5252.76 ▼4.25
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.05107.71 ▼0.5945.15 ▼0.01

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were detected

cultivate-for-woocommerce/cultivate-for-woocommerce.php 92% from 13 tests

The entry point to "Cultivate for WooCommerce" version 0.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "3.9.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,632 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41483701,799
PHP1414872819
SVG20014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.83
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods512.20%
▷ Public methods3687.80%
▷ Protected methods00.00%
▷ Private methods512.20%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.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 files were detected