62% limecall-widget

Code Review | = limecall-widget

WordPress plugin = limecall-widget scored62%from 54 tests.

About plugin

  • Plugin page: limecall-widget
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.5
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Apr 1, 2020
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: mohamedmamdouh1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /442 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.20MB] [CPU: ▼39.60ms] Passed 4 tests

This is a short check of server-side resources used by = limecall-widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6914.09 ▼24.09
Dashboard /wp-admin2.81 ▼0.4917.37 ▼28.13
Posts /wp-admin/edit.php2.81 ▼0.5415.60 ▼29.89
Add New Post /wp-admin/post-new.php2.81 ▼3.0717.87 ▼76.29
Media Library /wp-admin/upload.php2.81 ▼0.4217.20 ▼17.35
LimeCall /wp-admin/options-general.php?page=limecall-widget2.8216.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for = limecall-widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.67 ▲0.321.65 ▼0.0043.14 ▲1.86
Dashboard /wp-admin2,200 ▲235.50 ▼0.1283.66 ▼6.9236.77 ▼4.29
Posts /wp-admin/edit.php2,108 ▲111.98 ▼0.0232.50 ▼2.6933.08 ▼3.71
Add New Post /wp-admin/post-new.php1,533 ▲523.16 ▼0.04646.74 ▼28.2169.40 ▲13.05
Media Library /wp-admin/upload.php1,411 ▲84.23 ▲0.0699.15 ▲0.6544.98 ▼1.01
LimeCall /wp-admin/options-general.php?page=limecall-widget8721.9924.6240.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/limecall-widget/public/class-limecall-widget-public.php+28
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=limecall-widget
    • > Notice in wp-content/plugins/limecall-widget/public/class-limecall-widget-public.php+28
    Trying to access array offset on value of type bool

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/limecall-widget/public/parts/limecall-public-display.php
    • > /wp-content/plugins/limecall-widget/limecall/public/parts/limecall-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/limecall-widget/limecall/admin/parts/limecall-admin-display.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/limecall-widget/admin/parts/limecall-admin-display.php:8

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

limecall-widget/limecall-widget.php 92% from 13 tests

The primary PHP file in "= limecall-widget" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected547 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP1361229290
CSS202182
PO File2232475
JavaScript1010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods60
▷ Static methods46.67%
▷ Public methods5083.33%
▷ Protected methods00.00%
▷ Private methods1016.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.93MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
limecall/assets/screenshot-1.png389.83KB101.07KB▼ 74.07%
limecall/assets/screenshot-2.png84.58KB23.80KB▼ 71.86%
admin/imgs/insert-limecall.png0.27KB0.22KB▼ 19.27%
assets/screenshot-2.png84.58KB23.80KB▼ 71.86%
admin/imgs/find-limecall-icon.png0.81KB0.41KB▼ 49.04%