63% instant-design-tool

Code Review | Instant Design Tool

WordPress plugin Instant Design Tool scored 63% from 54 tests.

About plugin

  • Plugin page: instant-design-tool
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2020
  • Latest release: May 16, 2023
  • Number of updates: 57
  • Update frequency: every 20.5 days
  • Top authors: instantdesigntool (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,814 total downloads

Benchmarks

Plugin footprint 48% 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Instant Design Tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.79 ▼1.87
Dashboard /wp-admin3.31 ▲0.0046.25 ▲0.48
Posts /wp-admin/edit.php3.36 ▲0.0049.67 ▼1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.29 ▼9.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.45 ▲1.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Instant Design Tool
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.401.81 ▼0.1039.35 ▼9.63
Dashboard /wp-admin2,203 ▲125.83 ▼0.0597.46 ▼5.6735.71 ▼8.35
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0441.63 ▲0.9038.62 ▲0.81
Add New Post /wp-admin/post-new.php1,534 ▼023.27 ▲0.02719.48 ▲24.1557.62 ▲1.44
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.00101.11 ▼9.6746.96 ▲1.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Error in wp-content/plugins/instant-design-tool/uninstall.php+12
    Uncaught Error: Class 'IDT\Core\Logger\IDT_Logger' not found in wp-content/plugins/instant-design-tool/uninstall.php:12
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Uninstaller has failed for this plugin, leaving 84 files (0.24MB) in the plugin directory
    • (new file) IDTnl_NL.po
    • (new file) composer.json
    • (new file) IDT.php
    • (new file) composer.lock
    • (new file) includes/Admin/IDT_Button_Post_Type.php
    • (new file) includes/Admin/IDT_Settings_Tab.php
    • (new file) includes/Admin/IDT_Update_Manager.php
    • (new file) IDT-nl_NL.mo
    • (new file) IDT.pot
    • (new file) README.MD
    • ...
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • recovery_mode_email_last_sent

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/instant-design-tool/includes/Core/Elementor/IDT_Widget.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'IDT\\Core\\PrintApi\\PrintApiException' not found in wp-content/plugins/instant-design-tool/includes/Core/PrintApi/Exceptions/PrintApiResponseException.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'IDT\\Core\\Logger\\IDT_Logger' not found in wp-content/plugins/instant-design-tool/uninstall.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Instant Design Tool example), #2 (Instant Design Tool application example), #3 (Settings fields in WooCommerce), #4 (How to add a design product in WooCommerce)
The official readme.txt is a good inspiration

instant-design-tool/IDT.php 85% from 13 tests

This is the main PHP file of "Instant Design Tool" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("instant-design-tool.php" instead of "IDT.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected4,552 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP621,0301,3014,468
PO File1192160
JSON20024

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.28
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes54
▷ Abstract classes00.00%
▷ Concrete classes54100.00%
▷ Final classes11.85%
Methods288
▷ Static methods6622.92%
▷ Public methods22678.47%
▷ Protected methods41.39%
▷ Private methods5820.14%
Functions17
▷ Named functions211.76%
▷ Anonymous functions1588.24%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin