77% dustid-integration-kit

Code Review | Dustid Integration Kit

WordPress plugin Dustid Integration Kit scored77%from 54 tests.

About plugin

  • Plugin page: dustid-integratio...
  • Plugin version: 1.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Nov 23, 2023
  • Number of updates: 17
  • Update frequency: every 47.3 days
  • Top authors: dustid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Dustid Integration Kit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.85 ▲0.04
Dashboard /wp-admin3.31 ▲0.0046.08 ▼2.85
Posts /wp-admin/edit.php3.36 ▲0.0045.63 ▼0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.87 ▲1.22
Media Library /wp-admin/upload.php3.23 ▲0.0032.74 ▼0.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Dustid Integration Kit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.37 ▲0.091.62 ▼0.5838.09 ▼7.68
Dashboard /wp-admin2,192 ▲245.66 ▲0.1595.57 ▲2.8842.10 ▼1.32
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0839.21 ▲2.1936.71 ▼2.67
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.02650.68 ▲43.4549.82 ▲2.13
Media Library /wp-admin/upload.php1,403 ▲64.19 ▲0.0397.93 ▼2.3643.44 ▲1.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dustid-integration-kit/admin/partials/dustid_integration_kit-admin-orders.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dustid-integration-kit/admin/partials/dustid_integration_kit-admin-settings.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dustid-integration-kit/public/partials/dustid_integration_kit-public-how_its_work.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === dustid-integration-kit === )
The official readme.txt might help

dustid-integration-kit/dustid_integration_kit.php 85% from 13 tests

The main PHP file in "Dustid Integration Kit" ver. 1.0.14 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dustid-integration-kit.php" instead of "dustid_integration_kit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected17,103 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
CSS72,29111512,244
PHP207061,1962,858
JavaScript43402251,864
SVG100137

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.90
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods80
▷ Static methods22.50%
▷ Public methods7391.25%
▷ Protected methods00.00%
▷ Private methods78.75%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.92MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/confirmed.png1.47KB0.78KB▼ 47.42%
images/next.png0.40KB0.34KB▼ 13.30%
images/logo.png3.89KB3.10KB▼ 20.30%
images/un-visible.png1.23KB0.65KB▼ 46.97%
images/user_profile.png2.02KB1.68KB▼ 16.86%