79% woo-jet-integration

Code Review | Jet Integration for Woocommerce

WordPress plugin Jet Integration for Woocommerce scored79%from 54 tests.

About plugin

  • Plugin page: woo-jet-integration
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 23, 2018
  • Latest release: Aug 2, 2018
  • Number of updates: 25
  • Update frequency: every 4.1 days
  • Top authors: nuevesolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,017 total downloads

Benchmarks

Plugin footprint 65% 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: ▼3.88ms] Passed 4 tests

Server-side resources used by Jet Integration for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.56 ▲0.35
Dashboard /wp-admin3.31 ▲0.0047.21 ▼2.52
Posts /wp-admin/edit.php3.36 ▲0.0044.46 ▼3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.09 ▼7.81
Media Library /wp-admin/upload.php3.23 ▲0.0034.10 ▼1.48

Server storage [IO: ▲0.83MB] [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: 68 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Jet Integration for Woocommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.78 ▲0.461.64 ▼0.0143.99 ▼5.14
Dashboard /wp-admin2,206 ▲155.83 ▼0.07110.60 ▲11.5741.69 ▼1.94
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0234.84 ▼2.1932.82 ▼6.60
Add New Post /wp-admin/post-new.php1,536 ▲1623.06 ▼0.06619.60 ▼53.6351.95 ▲1.07
Media Library /wp-admin/upload.php1,391 ▲34.12 ▼0.0495.39 ▼11.9039.72 ▼5.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/woo-jet-integration/uninstall.php+33
    Invalid argument supplied for foreach()
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (jet_settings_section.png) image not found
You can take inspiration from this readme.txt

woo-jet-integration/nuevejet.php 92% from 13 tests

The primary PHP file in "Jet Integration for Woocommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-jet-integration.php" instead of "nuevejet.php")

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
No dangerous file extensions were detected9,667 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,6862026,060
JavaScript18789913,423
CSS44910184

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity33.80
▷ Minimum class complexity1.00
▷ Maximum class complexity344.00
Average method complexity5.32
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods114
▷ Static methods10.88%
▷ Public methods114100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/help.png0.30KB0.32KB0.00%
images/sort_asc_disabled.png0.14KB0.25KB0.00%
images/sort_desc_disabled.png0.14KB0.25KB0.00%
images/expand.png1.47KB1.23KB▼ 16.22%
images/cancel.png0.85KB0.59KB▼ 29.79%