83% welcomewp

Code Review | WelcomeWP

WordPress plugin WelcomeWP scored83%from 54 tests.

About plugin

  • Plugin page: welcomewp
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Aug 24, 2023
  • Number of updates: 11
  • Update frequency: every 37.5 days
  • Top authors: taskotr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /807 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
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼5.75ms] Passed 4 tests

A check of server-side resources used by WelcomeWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2051.69 ▲14.34
Dashboard /wp-admin3.51 ▲0.1645.66 ▼17.18
Posts /wp-admin/edit.php3.63 ▲0.2748.34 ▲1.74
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.92 ▼12.50
Media Library /wp-admin/upload.php3.44 ▲0.2038.45 ▲4.94
WelcomeWP /wp-admin/options-general.php?page=welcomewp-plugin3.4134.14
All Greeters /wp-admin/edit.php?post_type=greeter3.4949.95
Add New /wp-admin/post-new.php?post_type=greeter3.6348.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WelcomeWP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9914.71 ▲0.161.88 ▲0.1945.11 ▲4.56
Dashboard /wp-admin2,248 ▲675.83 ▲0.18100.36 ▲1.9637.61 ▼0.07
Posts /wp-admin/edit.php2,158 ▲582.31 ▲0.3142.68 ▲2.7135.68 ▼2.97
Add New Post /wp-admin/post-new.php1,578 ▲5223.15 ▲0.03671.87 ▲0.2436.36 ▼25.40
Media Library /wp-admin/upload.php1,453 ▲534.41 ▲0.0598.57 ▼7.4741.32 ▼6.39
WelcomeWP /wp-admin/options-general.php?page=welcomewp-plugin9582.0726.0021.61
All Greeters /wp-admin/edit.php?post_type=greeter1,1662.6252.2628.52
Add New /wp-admin/post-new.php?post_type=greeter2,8107.96221.8467.86

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=greeter
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpPointerL10n.dismiss is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

welcomewp/welcomewp.php 85% from 13 tests

The main PHP script in "WelcomeWP" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,691 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP62416081,067
CSS87648351
JavaScript65542273

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.80
▷ Minimum class complexity7.00
▷ Maximum class complexity43.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods63
▷ Static methods11.59%
▷ Public methods4571.43%
▷ Protected methods00.00%
▷ Private methods1828.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin