89% futy-widget

Code Review | Futy.io Leadbots

WordPress plugin Futy.io Leadbots scored89%from 54 tests.

About plugin

  • Plugin page: futy-widget
  • Plugin version: 2.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-6.4
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 19
  • Update frequency: every 75.1 days
  • Top authors: futy (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /7,655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲133.84ms] Passed 4 tests

Server-side resources used by Futy.io Leadbots
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.69 ▼0.65
Dashboard /wp-admin3.42 ▲0.11219.13 ▲158.28
Posts /wp-admin/edit.php3.47 ▲0.11277.11 ▲221.67
Add New Post /wp-admin/post-new.php5.94 ▲0.05253.47 ▲156.05
Media Library /wp-admin/upload.php3.28 ▲0.05325.50 ▲292.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Futy.io Leadbots
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8814.30 ▼0.042.19 ▲0.5639.96 ▲1.09
Dashboard /wp-admin2,227 ▲505.55 ▼0.1584.52 ▼10.5738.26 ▼3.79
Posts /wp-admin/edit.php2,135 ▲352.02 ▲0.0833.76 ▼7.2134.39 ▼2.24
Add New Post /wp-admin/post-new.php1,541 ▲1523.70 ▲0.76697.16 ▲20.1263.45 ▼0.00
Media Library /wp-admin/upload.php1,432 ▲384.21 ▲0.00103.41 ▲8.4043.52 ▲3.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Futy.io Leadbots" version 2.0.7
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)

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
Good job! No executable or dangerous file extensions detected330 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP45773220
PO File1212279
JavaScript42025
CSS1106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.50
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.17MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-256x256.png4.44KB2.37KB▼ 46.72%
assets/images/whatsapp-oplossingen.png169.61KB64.50KB▼ 61.97%
assets/images/icon-128x128.png2.26KB1.27KB▼ 43.58%