84% low-impack

Code Review | KIUD packaging for Woocommerce

WordPress plugin KIUD packaging for Woocommercescored84%from 54 tests.

About plugin

  • Plugin page: low-impack
  • Plugin version: 1.5.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Aug 28, 2023
  • Number of updates: 29
  • Update frequency: every 5.4 days
  • Top authors: lowimpack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.87ms] Passed 4 tests

Server-side resources used by KIUD packaging for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.97 ▼3.91
Dashboard /wp-admin3.35 ▲0.0047.36 ▼12.87
Posts /wp-admin/edit.php3.40 ▲0.0448.31 ▲1.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.44 ▼19.57
Media Library /wp-admin/upload.php3.27 ▲0.0433.49 ▲0.87
KIUD-packaging /wp-admin/options-general.php?page=KIUD-packaging3.2432.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by KIUD packaging for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.59 ▼1.001.75 ▼0.2043.78 ▼0.62
Dashboard /wp-admin2,210 ▲225.81 ▲0.9394.55 ▼3.0750.54 ▲10.44
Posts /wp-admin/edit.php2,093 ▲252.00 ▼0.0038.53 ▲1.7334.40 ▲0.16
Add New Post /wp-admin/post-new.php1,536 ▲1023.29 ▲0.14653.18 ▼34.8356.45 ▲2.01
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.0095.96 ▼3.2142.09 ▲1.45
KIUD-packaging /wp-admin/options-general.php?page=KIUD-packaging8062.0523.8124.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/low-impack/plugin-file.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === KIUD packaging for Woocommerce=== )
The official readme.txt is a good inspiration

low-impack/plugin-file.php 92% from 13 tests

The primary PHP file in "KIUD packaging for Woocommerce" version 1.5.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("low-impack.php" instead of "plugin-file.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
Success! There were no dangerous files found in this plugin232 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15011188
CSS18044

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin