83% ebanqo-widget

Code Review | eBanqo Widget

WordPress plugin eBanqo Widget scored 83% from 54 tests.

About plugin

  • Plugin page: ebanqo-widget
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.7
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: May 7, 2021
  • Number of updates: 4
  • Update frequency: every 7.5 days
  • Top authors: ebanqo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 352 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.35ms] Passed 4 tests

Server-side resources used by eBanqo Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.96 ▼7.64
Dashboard /wp-admin3.35 ▲0.0541.57 ▼7.22
Posts /wp-admin/edit.php3.40 ▲0.0544.10 ▼3.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.16 ▼11.43
Media Library /wp-admin/upload.php3.28 ▲0.0534.32 ▲0.56
eBanqo /wp-admin/options-general.php?page=ebanqoio_plugin3.3335.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
ebanqoio-options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for eBanqo Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.38 ▼1.031.64 ▼0.1642.50 ▲2.48
Dashboard /wp-admin2,207 ▲165.82 ▲0.9396.44 ▼15.1338.17 ▼6.88
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0437.60 ▼1.9934.46 ▼3.63
Add New Post /wp-admin/post-new.php1,517 ▼317.69 ▼5.33658.52 ▼39.1364.83 ▲9.20
Media Library /wp-admin/upload.php1,389 ▼24.19 ▼0.06101.46 ▼4.7444.16 ▼1.32
eBanqo /wp-admin/options-general.php?page=ebanqoio_plugin1,8363.9091.7168.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: enableWhatsApp in wp-content/plugins/ebanqo-widget/templates/widget.php on line 1
    • > PHP Notice
      Undefined variable: enableTwitter in wp-content/plugins/ebanqo-widget/templates/widget.php on line 1
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/ebanqo-widget/templates/widget.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ebanqo-widget/ebanqo.php:25
    • > PHP Notice
      Undefined variable: enableMessenger in wp-content/plugins/ebanqo-widget/templates/widget.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

ebanqo-widget/ebanqo.php 85% from 13 tests

This is the main PHP file of "eBanqo Widget" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 285 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ebanqo-widget.php" instead of "ebanqo.php")

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
There were no executable files found in this plugin637 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44471482
CSS1230129
JavaScript14426

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.57MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png41.21KB16.62KB▼ 59.66%
assets/icon-256x256.png5.56KB2.42KB▼ 56.49%
assets/banner-772x250.png57.17KB18.61KB▼ 67.44%
screenshot-2.png19.05KB7.84KB▼ 58.82%
screenshot-3.png37.41KB14.53KB▼ 61.15%