83% okomo

Code Review | OKOMO Ð Live Video Calls, Chat & More!

WordPress plugin OKOMO Ð Live Video Calls, Chat & More! scored83%from 54 tests.

About plugin

  • Plugin page: okomo
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-1.1.0
  • WordPress version: 6.3.1
  • First release: Mar 26, 2020
  • Latest release: Nov 9, 2022
  • Number of updates: 12
  • Update frequency: every 80.0 days
  • Top authors: okomodev (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /1,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.61ms] Passed 4 tests

An overview of server-side resources used by OKOMO Ð Live Video Calls, Chat & More!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.52 ▼2.67
Dashboard /wp-admin3.33 ▼0.0246.81 ▼15.96
Posts /wp-admin/edit.php3.38 ▲0.0248.29 ▲6.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.45 ▼3.16
Media Library /wp-admin/upload.php3.25 ▲0.0233.21 ▲3.37

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for OKOMO Ð Live Video Calls, Chat & More!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.69 ▼0.661.78 ▲0.0443.51 ▼5.30
Dashboard /wp-admin2,220 ▲355.82 ▼0.0696.46 ▼22.2283.17 ▲41.08
Posts /wp-admin/edit.php2,100 ▲111.98 ▼0.0139.26 ▲2.8936.69 ▼0.88
Add New Post /wp-admin/post-new.php1,533 ▲318.07 ▼5.33721.67 ▲39.2768.76 ▲11.86
Media Library /wp-admin/upload.php1,396 ▲84.22 ▲0.08111.88 ▲3.6147.85 ▲0.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/okomo/okomo.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in okomo/assets to your readme.txt
  • Tags: There are too many tags (62 tag instead of maximum 10)
The official readme.txt might help

okomo/okomo.php 92% from 13 tests

This is the main PHP file of "OKOMO Ð Live Video Calls, Chat & More!" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1411142
SVG10114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/okomo.png0.64KB0.45KB▼ 29.16%