10% conversation-starter

Code Review | Conversation Starter

WordPress plugin Conversation Starter scored10%from 54 tests.

About plugin

  • Plugin page: conversation-starter
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2009
  • Latest release: Jan 15, 2022
  • Number of updates: 16
  • Update frequency: every 277.6 days
  • Top authors: nateconley (62.5%)brandondove (43.75%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,413 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/conversation-starter/PluginCore/core.php+36
    Undefined index: id

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.60ms] Passed 4 tests

An overview of server-side resources used by Conversation Starter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1342.98 ▲0.07
Dashboard /wp-admin3.44 ▲0.1352.69 ▲0.89
Posts /wp-admin/edit.php3.55 ▲0.1952.93 ▲3.89
Add New Post /wp-admin/post-new.php6.02 ▲0.1395.15 ▼10.00
Media Library /wp-admin/upload.php3.36 ▲0.1335.10 ▼1.37
Conversation Starter Changelog /wp-admin/admin.php?page=conversation-starter-changelog3.3334.09

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 16 new options
New WordPress options
conversation-starter_div_padding
theysaidso_admin_options
conversation-starter_div_margin
conversation-starter_background_color
widget_theysaidso_widget
db_upgraded
can_compress_scripts
conversation-starter_show_border
conversation-starter_font_weight
conversation-starter_border_color
...

Browser metrics Passed 4 tests

Checking browser requirements for Conversation Starter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.80 ▼0.588.79 ▲6.7343.56 ▼2.48
Dashboard /wp-admin2,199 ▲195.51 ▼0.1884.63 ▼6.4438.05 ▼10.60
Posts /wp-admin/edit.php2,101 ▲12.04 ▼0.0237.21 ▼3.2934.00 ▼2.13
Add New Post /wp-admin/post-new.php6,249 ▲4,72018.77 ▲0.99927.42 ▲271.2166.44 ▲8.15
Media Library /wp-admin/upload.php1,401 ▲14.23 ▼0.01109.87 ▲3.7749.07 ▲2.36
Conversations Options /wp-admin/core.php260.440.0716.62
Conversation Starter Changelog /wp-admin/admin.php?page=conversation-starter-changelog1,0782.0124.5629.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • conversation-starter_div_margin
    • widget_recent-comments
    • conversation-starter_show_border
    • can_compress_scripts
    • conversation-starter_font_weight
    • widget_recent-posts
    • conversation-starter_border_type
    • widget_theysaidso_widget
    • conversation-starter_default_prompt_text
    • conversation-starter_background_color
    • ...

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/conversation-starter/views/changelog.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/conversation-starter/javascripts/frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function padding() on null in wp-content/plugins/conversation-starter/stylesheets/frontend.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/conversation-starter/lib/changelog.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/conversation-starter/pj-convo.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/conversation-starter/PluginCore/extend.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/core.php
    • > Network (severe)
    wp-admin/core.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Custom Meta Box to enter your prompt), #2 (Options to change the appearance of the prompt)
You can look at the official readme.txt

conversation-starter/pj-convo.php 85% from 13 tests

The main PHP file in "Conversation Starter" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("conversation-starter.php" instead of "pj-convo.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin955 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP710695641
SVG301168
CSS260129
JavaScript12217

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.67
▷ Minimum class complexity2.00
▷ Maximum class complexity52.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods729.17%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png45.59KB16.60KB▼ 63.58%
screenshot-1.png9.98KB4.96KB▼ 50.29%