84% airchat

Code Review | Airchat

WordPress plugin Airchat scored84%from 54 tests.

About plugin

  • Plugin page: airchat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Jul 6, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: airchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /509 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Airchat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.62 ▼0.04
Dashboard /wp-admin3.34 ▲0.0358.53 ▲2.69
Posts /wp-admin/edit.php3.39 ▲0.0350.12 ▼3.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.72 ▼22.59
Media Library /wp-admin/upload.php3.26 ▲0.0339.33 ▲0.83
Airchat /wp-admin/options-general.php?page=airchat3.2436.38

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Airchat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲2614.29 ▼0.091.65 ▼0.3444.15 ▲0.96
Dashboard /wp-admin2,218 ▲385.58 ▼0.1393.23 ▼0.0143.61 ▲3.90
Posts /wp-admin/edit.php2,123 ▲232.04 ▲0.0737.21 ▼0.7834.00 ▼1.06
Add New Post /wp-admin/post-new.php1,545 ▲1922.98 ▼0.09689.76 ▲3.8252.24 ▼3.46
Media Library /wp-admin/upload.php1,426 ▲294.14 ▼0.04101.43 ▼25.9443.14 ▼5.25
Airchat /wp-admin/options-general.php?page=airchat8972.0025.1029.92

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/airchat/airchat.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/airchat/views/sidebar.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/airchat/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/airchat/views/dashboard-notices.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: airchat, bot

airchat/airchat.php Passed 13 tests

The primary PHP file in "Airchat" version 1.0.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
It will insert an airchat code snippet required to run the bot on your wordpress site

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
No dangerous file extensions were detected211 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 are no PNG files in this plugin