78% custom-welcome-guide

Code Review | Custom Welcome Guide

WordPress plugin Custom Welcome Guide scored78%from 54 tests.

About plugin

  • Plugin page: custom-welcome-guide
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2021
  • Latest release: Jul 13, 2023
  • Number of updates: 31
  • Update frequency: every 21.5 days
  • Top authors: nravota12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,740 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.30ms] Passed 4 tests

An overview of server-side resources used by Custom Welcome Guide
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.12 ▼0.14
Dashboard /wp-admin3.38 ▲0.0344.89 ▼14.24
Posts /wp-admin/edit.php3.43 ▲0.0745.16 ▲1.65
Add New Post /wp-admin/post-new.php6.01 ▲0.1281.68 ▼11.44
Media Library /wp-admin/upload.php3.31 ▲0.0736.49 ▲0.63
All Guides /wp-admin/edit.php?post_type=guides3.3534.91
Settings /wp-admin/edit.php?post_type=guides&page=custom_welcome_guide3.2730.49
Add New /wp-admin/post-new.php?post_type=guides6.0075.94

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Custom Welcome Guide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11516.98 ▲2.801.60 ▼0.3343.27 ▲6.37
Dashboard /wp-admin2,272 ▲957.89 ▲2.23196.63 ▲106.7643.47 ▲3.03
Posts /wp-admin/edit.php2,211 ▲1146.60 ▲4.6177.68 ▲41.1135.81 ▼1.16
Add New Post /wp-admin/post-new.php1,769 ▲24325.14 ▲2.05586.63 ▼81.5841.15 ▼13.40
Media Library /wp-admin/upload.php1,561 ▲1619.22 ▲4.99131.39 ▲37.0942.61 ▼5.10
All Guides /wp-admin/edit.php?post_type=guides1,1777.3571.3126.94
Settings /wp-admin/edit.php?post_type=guides&page=custom_welcome_guide9927.1496.0130.54
Add New /wp-admin/post-new.php?post_type=guides6,28824.36838.8132.44

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 7 options in the database
    • theysaidso_admin_options
    • cwg_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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 no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/custom-welcome-guide/index.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-welcome-guide/inc/guide.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: walkthrough, introduction, block-editor, tour, user-onboarding

custom-welcome-guide/index.php 85% from 13 tests

The entry point to "Custom Welcome Guide" version 1.0.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 221 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-welcome-guide.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin17,491 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON20016,660
JavaScript117594506
PHP43572203
Sass212498
Markdown116022
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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