78% wp-dixa-chat

Code Review | Dixa Chat

WordPress plugin Dixa Chat scored78%from 54 tests.

About plugin

  • Plugin page: wp-dixa-chat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Aug 8, 2017
  • Number of updates: 4
  • Update frequency: every 5.0 days
  • Top authors: lfirth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.25ms] Passed 4 tests

Server-side resources used by Dixa Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.75 ▼0.23
Dashboard /wp-admin3.32 ▲0.0245.84 ▼2.20
Posts /wp-admin/edit.php3.37 ▲0.0248.76 ▼0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.75 ▼14.05
Media Library /wp-admin/upload.php3.24 ▲0.0232.99 ▼0.32
Dixa Chat /wp-admin/options-general.php?page=dixa-chat3.1929.66

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Dixa Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲9213.70 ▼0.681.84 ▼0.2143.89 ▼5.14
Dashboard /wp-admin2,230 ▲424.82 ▼1.24110.20 ▼6.5239.62 ▼5.78
Posts /wp-admin/edit.php2,115 ▲262.03 ▲0.0141.85 ▲4.5535.76 ▲3.65
Add New Post /wp-admin/post-new.php1,546 ▲1323.36 ▲0.17651.49 ▼21.1749.97 ▼5.46
Media Library /wp-admin/upload.php1,412 ▲244.20 ▼0.0199.31 ▲1.1443.21 ▲0.33
Dixa Chat /wp-admin/options-general.php?page=dixa-chat7702.0723.9025.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=dixa-chat
    • > Warning in wp-content/plugins/wp-dixa-chat/dixa-chat.php+170
    include_once(wp-content/plugins/dixa-chat/views/settings.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=dixa-chat
    • > Warning in wp-content/plugins/wp-dixa-chat/dixa-chat.php+170
    include_once(): Failed opening 'wp-content/plugins/dixa-chat/views/settings.php' for inclusion (include_path='.:/usr/share/php')

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-dixa-chat/views/sidebar.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-dixa-chat/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-dixa-chat/views/dashboard-notices.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dixa-chat/dixa-chat.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Settings Screen) image not found
You can look at the official readme.txt

wp-dixa-chat/dixa-chat.php 92% from 13 tests

The principal PHP file in "Dixa Chat" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-dixa-chat.php" instead of "dixa-chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin181 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43690181

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin