78% contact-at-once-chat

Code Review | Contact At Once! Chat

WordPress plugin Contact At Once! Chat scored78%from 54 tests.

About plugin

  • Plugin page: contact-at-once-chat
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2014
  • Latest release: Apr 7, 2016
  • Number of updates: 11
  • Update frequency: every 60.6 days
  • Top authors: xeric13x (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /868 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.59ms] Passed 4 tests

Analyzing server-side resources used by Contact At Once! Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.38 ▲0.14
Dashboard /wp-admin3.32 ▲0.0252.18 ▼4.33
Posts /wp-admin/edit.php3.37 ▲0.0148.30 ▼6.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.04 ▼23.52
Media Library /wp-admin/upload.php3.24 ▲0.0138.07 ▲2.32
Contact At Once! /wp-admin/options-general.php?page=cao-chat3.2636.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Contact At Once! Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12113.50 ▼1.219.01 ▲7.0644.28 ▲0.74
Dashboard /wp-admin2,205 ▲315.65 ▲0.0297.52 ▲0.6541.63 ▼4.31
Posts /wp-admin/edit.php2,110 ▲102.01 ▲0.0237.06 ▲0.8735.69 ▼1.09
Add New Post /wp-admin/post-new.php1,413 ▼11317.88 ▼5.12580.81 ▼147.4847.31 ▼11.35
Media Library /wp-admin/upload.php1,410 ▲74.18 ▼0.0294.73 ▼6.0042.35 ▼13.72
Contact At Once! /wp-admin/options-general.php?page=cao-chat9351.7425.5326.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • cao_chat
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/contact-at-once-chat/cao-chat.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-at-once-chat/cao-chat.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-at-once-chat/inc/settings-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/contact-at-once-chat/cao-chat.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === contact-at-once-chat === )
Please take inspiration from this readme.txt

contact-at-once-chat/cao-chat.php 92% from 13 tests

This is the main PHP file of "Contact At Once! Chat" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-at-once-chat.php" instead of "cao-chat.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 plugin245 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP32525185
JavaScript32532
CSS21028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin