78% fixed-chat-icons

Code Review | Fixed Chat Icons

WordPress plugin Fixed Chat Icons scored78%from 54 tests.

About plugin

  • Plugin page: fixed-chat-icons
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Nov 2, 2019
  • Latest release: Feb 9, 2020
  • Number of updates: 14
  • Update frequency: every 7.1 days
  • Top authors: berkaydemir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /861 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.11MB] [CPU: ▼2.72ms] Passed 4 tests

A check of server-side resources used by Fixed Chat Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2241.29 ▲0.71
Dashboard /wp-admin3.40 ▲0.0948.85 ▲3.58
Posts /wp-admin/edit.php3.51 ▲0.1545.76 ▼3.66
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.59 ▼11.52
Media Library /wp-admin/upload.php3.32 ▲0.0943.57 ▲9.22

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Fixed Chat Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲12913.48 ▼0.899.32 ▲7.3739.75 ▼0.18
Dashboard /wp-admin2,213 ▲365.62 ▲0.0689.49 ▼2.1896.52 ▲58.29
Posts /wp-admin/edit.php2,121 ▲212.03 ▲0.0740.52 ▲3.0730.34 ▼7.75
Add New Post /wp-admin/post-new.php1,706 ▲17024.46 ▲1.26613.20 ▲4.6380.96 ▲7.95
Media Library /wp-admin/upload.php1,412 ▲124.17 ▼0.03100.81 ▼5.5986.12 ▲42.96

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fixed-chat-icons/public/partials/fixed-chat-icons-public-display.php
    • > /wp-content/plugins/fixed-chat-icons/admin/partials/fixed-chat-icons-admin-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fixed-chat-icons/admin/partials/fixed-chat-icons-admin-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fixed-chat-icons/admin/partials/fixed-chat-icons-admin-footer.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #5 (Mobile with only WhatsApp) image required
  • Donate link: Please fix this invalid URI: "berkaydemir.com"
Please take inspiration from this readme.txt

fixed-chat-icons/fixed-chat-icons.php Passed 13 tests

Analyzing the main PHP file in "Fixed Chat Icons" version 2.0
63 characters long description:
Wordpress Social Media Contact Plugin (WhatsApp, Telegram, ...)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin958 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14170498579
JavaScript25227274
CSS406105

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity1.71
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
11 PNG files occupy 0.44MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/instagram.png250.19KB134.72KB▼ 46.15%
admin/img/messenger.png42.54KB17.57KB▼ 58.71%
admin/img/chat.png27.45KB8.40KB▼ 69.39%
admin/img/phone.png20.79KB7.62KB▼ 63.35%
admin/img/male.png17.40KB6.65KB▼ 61.78%