83% omi-live-talk

Code Review | OMI Live Talk

WordPress plugin OMI Live Talk scored83%from 54 tests.

About plugin

  • Plugin page: omi-live-talk
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Oct 2, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tinhphamit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by OMI Live Talk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.41 ▼2.84
Dashboard /wp-admin3.32 ▲0.0251.04 ▼6.12
Posts /wp-admin/edit.php3.37 ▲0.0148.47 ▼6.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.66 ▼6.89
Media Library /wp-admin/upload.php3.24 ▲0.0137.58 ▲5.17

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

OMI Live Talk: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12614.75 ▲0.342.12 ▲0.0544.55 ▲0.55
Dashboard /wp-admin2,224 ▲364.91 ▼0.90109.51 ▲1.3245.04 ▲1.83
Posts /wp-admin/edit.php2,110 ▲181.97 ▼0.0034.04 ▼8.0734.77 ▼4.27
Add New Post /wp-admin/post-new.php1,543 ▲122.73 ▲4.65631.00 ▲10.9753.73 ▼2.44
Media Library /wp-admin/upload.php1,400 ▲94.23 ▲0.01101.21 ▲4.5346.57 ▲0.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omi-live-talk/omi-live-talk.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Requires php: Version format is invalid
  • Screenshots: Please add images for these screenshots: #1 (Chat Free), #2 (Audio Call Free), #3 (Video Call Free)
You can take inspiration from this readme.txt

omi-live-talk/omi-live-talk.php 92% from 13 tests

The main file in "OMI Live Talk" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15974

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin