78% jipink-for-woocommerce

Code Review | Jipink for WooCommerce

WordPress plugin Jipink for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: jipink-for-woocom...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2021
  • Latest release: Sep 9, 2023
  • Number of updates: 13
  • Update frequency: every 66.5 days
  • Top authors: jipink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.91ms] Passed 4 tests

Analyzing server-side resources used by Jipink for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.89 ▼6.68
Dashboard /wp-admin3.31 ▼0.0442.37 ▼19.41
Posts /wp-admin/edit.php3.36 ▲0.0045.26 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.80 ▼16.19
Media Library /wp-admin/upload.php3.23 ▲0.0036.14 ▼1.37
Ajustes /wp-admin/admin.php?page=wc-jipink-settings3.0023.84
Ayuda /wp-admin/admin.php?page=wc-jipink-help3.0021.96
Logs /wp-admin/admin.php?page=wc-jipink-logs3.0022.05

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jipink for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.361.68 ▼0.2141.32 ▼1.46
Dashboard /wp-admin2,198 ▲175.62 ▲0.0393.45 ▼10.0840.99 ▼0.10
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0238.73 ▼0.0735.90 ▲2.68
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▲0.03659.90 ▼9.3554.94 ▼10.15
Media Library /wp-admin/upload.php1,397 ▼04.21 ▼0.04106.88 ▲3.0148.16 ▲2.66
Ajustes /wp-admin/admin.php?page=wc-jipink-settings280.420.063.53
Ayuda /wp-admin/admin.php?page=wc-jipink-help280.420.083.47
Logs /wp-admin/admin.php?page=wc-jipink-logs280.420.063.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Fields\\Field' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Fields/SelectField.php:5
    • > PHP Fatal error
      Trait 'Jipink\\Helper\oticesTrait' not found in wp-content/plugins/jipink-for-woocommerce/Helper/Helper.php on line 5
    • > PHP Fatal error
      Uncaught Error: Interface 'Jipink\\Settings\\Fields\\FieldInterface' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Fields/Field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Fields\\Field' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Fields/PasswordField.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Fields\\Field' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Fields/NumberField.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Sections\\Section' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Configuration/Auth2Section.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Sections\\Section' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Configuration/DevelopSection.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Sections\\Section' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Configuration/Auth1Section.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Fields\\Field' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Fields/TextField.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jipink\\Settings\\Fields\\Field' not found in wp-content/plugins/jipink-for-woocommerce/Settings/Fields/DescriptionField.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wc-jipink-settings
    • > Network (severe)
    wp-admin/admin.php?page=wc-jipink-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wc-jipink-help
    • > Network (severe)
    wp-admin/admin.php?page=wc-jipink-help - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wc-jipink-logs
    • > Network (severe)
    wp-admin/admin.php?page=wc-jipink-logs - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

jipink-for-woocommerce/woo-jipink.php 85% from 13 tests

The primary PHP file in "Jipink for WooCommerce" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jipink-for-woocommerce.php" instead of "woo-jipink.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("6.2" instead of "3.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,629 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP322244401,566
CSS17059
SVG1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.58
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces10
Interfaces2
Traits6
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes521.74%
Methods111
▷ Static methods6861.26%
▷ Public methods10190.99%
▷ Protected methods10.90%
▷ Private methods98.11%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png7.60KB3.14KB▼ 58.72%