90% wp-live-messenger

Code Review | WP Live Messenger

WordPress plugin WP Live Messenger scored90%from 54 tests.

About plugin

  • Plugin page: wp-live-messenger
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 2, 2017
  • Latest release: Nov 10, 2017
  • Number of updates: 10
  • Update frequency: every 15.7 days
  • Top authors: jaedm97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /719 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▲1.91ms] Passed 4 tests

This is a short check of server-side resources used by WP Live Messenger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.98 ▲5.79
Dashboard /wp-admin3.38 ▲0.0752.70 ▲0.41
Posts /wp-admin/edit.php3.49 ▲0.1450.29 ▲3.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.37 ▲0.28
Media Library /wp-admin/upload.php3.28 ▲0.0535.63 ▲3.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Live Messenger
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,175 ▲44016.70 ▲2.3449.66 ▲47.7539.09 ▼4.85
Dashboard /wp-admin2,346 ▲1556.44 ▲1.55121.55 ▲17.3072.81 ▲28.61
Posts /wp-admin/edit.php2,264 ▲1723.38 ▲1.3652.39 ▲10.9268.66 ▲32.15
Add New Post /wp-admin/post-new.php1,542 ▲2218.01 ▼5.02577.47 ▼79.19155.65 ▲103.33
Media Library /wp-admin/upload.php1,403 ▲184.19 ▼0.0679.69 ▼20.3676.30 ▲32.73

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

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

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
No plugin tags provided

wp-live-messenger/wp-live-messenger.php Passed 13 tests

"WP Live Messenger" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
It allows user to send message directly in Facebook

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 detected6,508 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS6155352,775
SVG1002,671
JavaScript79439666
PHP910741396

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/fb.png36.02KB17.34KB▼ 51.86%
assets/admin/images/messenger-icon_old.png0.29KB0.29KB0.00%
assets/admin/images/messenger-icon.png0.26KB0.37KB0.00%