79% apexchat

Code Review | ApexChat

WordPress plugin ApexChat scored79%from 54 tests.

About plugin

  • Plugin page: apexchat
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Nov 21, 2023
  • Number of updates: 11
  • Update frequency: every 124.4 days
  • Top authors: raziapex (90.91%)mueedabdul (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /4,627 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.02MB] [CPU: ▼10.11ms] Passed 4 tests

An overview of server-side resources used by ApexChat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.11 ▼0.39
Dashboard /wp-admin3.34 ▼0.0146.67 ▼20.10
Posts /wp-admin/edit.php3.39 ▲0.0346.89 ▼2.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.46 ▼17.75
Media Library /wp-admin/upload.php3.26 ▲0.0335.74 ▲2.35
ApexChat /wp-admin/options-general.php?page=apexchat_plugin3.2131.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
apexchat_version
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ApexChat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.24 ▲0.031.72 ▼0.1343.09 ▲0.26
Dashboard /wp-admin2,202 ▲275.59 ▼0.1294.30 ▼22.3341.65 ▼4.20
Posts /wp-admin/edit.php2,104 ▲72.09 ▲0.1338.60 ▲2.3835.87 ▲0.71
Add New Post /wp-admin/post-new.php1,529 ▲323.66 ▲0.40670.29 ▼2.5555.87 ▲3.99
Media Library /wp-admin/upload.php1,401 ▲14.19 ▲0.0194.49 ▼3.4341.65 ▼1.30
ApexChat /wp-admin/options-general.php?page=apexchat_plugin8062.0127.4731.60

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=apexchat_plugin
    • > Notice in wp-content/plugins/apexchat/functions.php+63
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× 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/apexchat/apexchat.php:20

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: live chat, apexchat, chat

apexchat/apexchat.php Passed 13 tests

The primary PHP file in "ApexChat" version 1.3.3 is used by WordPress to initiate all plugin functionality
28 characters long description:
Plugin for use with ApexChat

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin107 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32723107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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