89% gust-daisy-ui

Code Review | Gust daisyUI

WordPress plugin Gust daisyUI scored89%from 54 tests.

About plugin

  • Plugin page: gust-daisy-ui
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 24, 2023
  • Latest release: Oct 25, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: getgust (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 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: ▼3.96ms] Passed 4 tests

Server-side resources used by Gust daisyUI
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.06 ▼3.15
Dashboard /wp-admin3.34 ▲0.0342.35 ▼2.04
Posts /wp-admin/edit.php3.39 ▲0.0344.37 ▼4.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.67 ▼6.14
Media Library /wp-admin/upload.php3.26 ▲0.0332.88 ▲0.82

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gust daisyUI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▼0.271.55 ▼0.2439.94 ▲0.17
Dashboard /wp-admin2,198 ▲215.65 ▲0.1182.04 ▼6.7637.60 ▼4.50
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0037.60 ▲0.7932.56 ▼3.89
Add New Post /wp-admin/post-new.php1,526 ▼223.55 ▲0.61604.03 ▼46.2260.44 ▲2.84
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.0194.94 ▼1.1641.91 ▼4.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No plugin tags provided

gust-daisy-ui/gust-daisyui.php 85% from 13 tests

The primary PHP file in "Gust daisyUI" version 0.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gust-daisy-ui.php" instead of "gust-daisyui.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected2,682 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON24102,534
PHP22683148

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods654.55%
▷ Protected methods00.00%
▷ Private methods545.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected