72% warm-welcome

Code Review | Warm Welcome

WordPress plugin Warm Welcome scored 72% from 54 tests.

About plugin

  • Plugin page: warm-welcome
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2021
  • Latest release: Jun 23, 2021
  • Number of updates: 10
  • Update frequency: every 13.2 days
  • Top authors: davidjayww (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.27MB] [CPU: ▼9.77ms] Passed 4 tests

This is a short check of server-side resources used by Warm Welcome
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4447.32 ▲7.38
Dashboard /wp-admin3.73 ▲0.4352.89 ▲3.29
Posts /wp-admin/edit.php3.84 ▲0.4953.28 ▲8.15
Add New Post /wp-admin/post-new.php3.55 ▼2.3339.14 ▼51.63
Media Library /wp-admin/upload.php3.63 ▲0.4037.89 ▲1.90

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 593 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Warm Welcome: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,327 ▲59219.77 ▲5.5230.08 ▲28.2144.46 ▼8.81
Dashboard /wp-admin2,585 ▲4039.62 ▲4.74175.88 ▲70.9440.75 ▼4.80
Posts /wp-admin/edit.php2,507 ▲4216.64 ▲4.4676.71 ▲41.8130.07 ▼3.88
Add New Post /wp-admin/post-new.php1,613 ▲8020.40 ▼2.90681.64 ▲6.9144.17 ▼6.28
Media Library /wp-admin/upload.php1,624 ▲2367.11 ▲2.88110.86 ▲2.1239.92 ▼5.22
Warm Welcome /wp-admin/crb_carbon_fields_container_warm_welcome.php260.440.1314.31

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

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/warm-welcome/templates/signature-widget.php
  • 176× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Widget\\Widget' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Widget.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/warm-welcome/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Field/Separator_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Condition.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/warm-welcome/vendor/symfony/var-dumper/Tests/Caster/PdoCasterTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Container/Widget_Container.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/warm-welcome/vendor/htmlburger/carbon-fields/core/Service/Revisions_Service.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/crb_carbon_fields_container_warm_welcome.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_warm_welcome.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: widget logic, display widgets, widgets

warm-welcome/index.php 92% from 13 tests

The main PHP script in "Warm Welcome" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("warm-welcome.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin55,432 lines of code in 530 files:
LanguageFilesBlank linesComment linesLines of code
PHP2394,0048,79818,731
JSON110016,890
JavaScript1875,3518,73513,740
PO File268191,0202,202
Sass4833501,753
CSS93371,1441,675
Markdown72590411
XML13028
SVG2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.51
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces35
Interfaces8
Traits1
Classes190
▷ Abstract classes1910.00%
▷ Concrete classes17190.00%
▷ Final classes21.17%
Methods1,285
▷ Static methods22817.74%
▷ Public methods1,08084.05%
▷ Protected methods18314.24%
▷ Private methods221.71%
Functions185
▷ Named functions8747.03%
▷ Anonymous functions9852.97%
Constants60
▷ Global constants1016.67%
▷ Class constants5083.33%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/assets/ico-web.png1.35KB0.52KB▼ 61.27%
resources/assets/ico-arrow.png1.16KB0.33KB▼ 71.96%
resources/assets/ico-phone.png1.28KB0.39KB▼ 69.19%
resources/assets/block-screenshot.png3.89KB1.39KB▼ 64.23%