74% atomchat

Code Review | Group Chat & Video Chat by AtomChat

WordPress plugin Group Chat & Video Chat by AtomChat scored74%from 54 tests.

About plugin

  • Plugin page: atomchat
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Sep 15, 2023
  • Number of updates: 72
  • Update frequency: every 12.4 days
  • Top authors: atomchat (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /24,170 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.81ms] Passed 4 tests

Analyzing server-side resources used by Group Chat & Video Chat by AtomChat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.76 ▲1.12
Dashboard /wp-admin3.34 ▼0.0053.19 ▼12.75
Posts /wp-admin/edit.php3.45 ▲0.1055.07 ▲2.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.90 ▼22.31
Media Library /wp-admin/upload.php3.26 ▲0.0344.53 ▲10.78

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

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

Browser metrics Passed 4 tests

Group Chat & Video Chat by AtomChat: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.20 ▲0.021.59 ▼0.0644.14 ▲0.74
Dashboard /wp-admin2,191 ▲115.55 ▼0.0288.82 ▲0.0277.28 ▲37.37
Posts /wp-admin/edit.php2,111 ▲141.96 ▼0.0342.08 ▲2.9241.22 ▲2.55
Add New Post /wp-admin/post-new.php1,555 ▲1823.14 ▲4.80757.55 ▲133.4355.33 ▼20.38
Media Library /wp-admin/upload.php1,414 ▲144.19 ▲0.04104.98 ▲0.1173.65 ▲26.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/atomchat/atomchat.php+103
    Undefined index: atomchat_cms_file
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: username in wp-content/plugins/atomchat/api/v1/atomchatLogin.php on line 133
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_authenticate() in wp-content/plugins/atomchat/api/v1/atomchatLogin.php:21
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/atomchat/atomchat.php on line 13
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/atomchat/atomchat.php on line 13
    • > PHP Notice
      Undefined index: password in wp-content/plugins/atomchat/api/v1/atomchatLogin.php on line 134
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/atomchat/atomchat.php on line 13
    • > PHP Notice
      Undefined index: type in wp-content/plugins/atomchat/api/v1/atomchatLogin.php on line 135
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/atomchat/admin/atomchat-admin.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/atomchat/atomchat.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/atomchat/includes/atomchat_cloud.php:3

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 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

atomchat/atomchat.php Passed 13 tests

The primary PHP file in "Group Chat & Video Chat by AtomChat" version 1.1.4 is used by WordPress to initiate all plugin functionality
48 characters long description:
Voice, video & text chat for your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,580 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP112081631,556
CSS55740685
JavaScript54225317
SVG20122

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity13.00
▷ Minimum method complexity9.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions3093.75%
▷ Anonymous functions26.25%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.46MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo white.png40.03KB18.29KB▼ 54.31%
images/atom_chat_white_ icon.png0.85KB0.62KB▼ 27.43%
images/atom_chat_black_icon_logo.png6.68KB3.34KB▼ 50.08%
images/atom_chat_white_main_ icon.png7.90KB3.76KB▼ 52.39%
images/feedback_one.png13.68KB4.85KB▼ 64.51%