83% nerdcom-chat

Code Review | Nerdcom Chat

WordPress plugin Nerdcom Chat scored83%from 54 tests.

About plugin

  • Plugin page: nerdcom-chat
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 29, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 30
  • Update frequency: every 0.0 days
  • Top authors: nerdcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /165 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.05MB] [CPU: ▼0.07ms] Passed 4 tests

An overview of server-side resources used by Nerdcom Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.94 ▲4.48
Dashboard /wp-admin3.36 ▲0.0650.82 ▲0.37
Posts /wp-admin/edit.php3.41 ▲0.0548.88 ▲0.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.29 ▼2.63
Media Library /wp-admin/upload.php3.28 ▲0.0535.42 ▲1.69
Nerdcom Chat /wp-admin/options-general.php?page=Nerdcom-Chat3.2529.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Nerdcom Chat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.511.74 ▲0.0741.97 ▼6.33
Dashboard /wp-admin2,210 ▲214.81 ▼0.14102.34 ▼15.8740.57 ▼2.98
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0440.44 ▼1.5434.61 ▼1.01
Add New Post /wp-admin/post-new.php1,542 ▲723.32 ▲0.23673.90 ▲12.4560.20 ▲2.89
Media Library /wp-admin/upload.php1,386 ▼24.20 ▲0.0293.91 ▼7.2240.32 ▼6.71
Nerdcom Chat /wp-admin/options-general.php?page=Nerdcom-Chat1,1572.0522.5727.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nerdcom-chat/index.php:245

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Dashboard), #2 (Users area), #3 (Chat)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

nerdcom-chat/index.php 92% from 13 tests

"Nerdcom Chat" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nerdcom-chat.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin232 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11615220
CSS13011
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.86
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin