83% weebotlite

Code Review | weebotLite

WordPress plugin weebotLite scored 83% from 54 tests.

About plugin

  • Plugin page: weebotlite
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7
  • WordPress version: 5.9.2
  • First release: May 15, 2017
  • Latest release: May 15, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: weedesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 490 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 gracefully, with no errors

Server metrics [RAM: ▲0.57MB] [CPU: ▼283.24ms] Passed 4 tests

Server-side resources used by weebotLite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6160.81 ▲10.57
Dashboard /wp-admin3.98 ▲0.5745.36 ▲12.98
Posts /wp-admin/edit.php4.20 ▲0.5642.69 ▲2.88
Add New Post /wp-admin/post-new.php7.51 ▲0.54107.22 ▼1,145.87
Media Library /wp-admin/upload.php3.93 ▲0.6329.95 ▼0.55
Questions /wp-admin/admin.php?page=weebotLite-questions4.0730.94
weebotLite /wp-admin/options-general.php?page=weebotLite-options3.9527.40
User /wp-admin/admin.php?page=weebotLite-user4.0831.39
Answers /wp-admin/admin.php?page=weebotLite-answers4.0829.58
weebotLite /wp-admin/admin.php?page=weebotLite3.9532.37
Settings /wp-admin/admin.php?page=weebotLite-options3.9526.73

Server storage [IO: ▲2.63MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 94 new files
Database: 7 new tables, 1 new option
New tables
wp_weebotLite_words
wp_weebotLite_questions
wp_weebotLite_bridge
wp_weebotLite_user
wp_weebotLite_events
wp_weebotLite_chats
wp_weebotLite_pages
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

A check of browser resources used by weebotLite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,336 ▲59416.92 ▲1.1716.27 ▲10.2117.23 ▲15.07
Dashboard /wp-admin2,965 ▲1047.03 ▲0.82124.99 ▼8.71155.63 ▼0.93
Posts /wp-admin/edit.php2,757 ▲663.65 ▲0.2965.03 ▲2.41137.60 ▼1.38
Add New Post /wp-admin/post-new.php1,714 ▲317.05 ▼4.67442.91 ▲14.17180.84 ▲30.75
Media Library /wp-admin/upload.php1,773 ▲755.92 ▲0.41128.72 ▼18.05191.47 ▼3.99
Questions /wp-admin/admin.php?page=weebotLite-questions1,0992.9958.10103.00
weebotLite /wp-admin/options-general.php?page=weebotLite-options2,0403.2760.02125.64
User /wp-admin/admin.php?page=weebotLite-user1,5443.2359.08121.01
Answers /wp-admin/admin.php?page=weebotLite-answers1,1052.9857.66108.64
weebotLite /wp-admin/admin.php?page=weebotLite1,5082.9861.45126.98
Settings /wp-admin/admin.php?page=weebotLite-options2,0393.2861.06129.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weebotLite-options
    • > Javascript (severe) in unknown
    /wp-content/plugins/weebotlite/admin/assets/js/admin.js?ver=5.9.2 210:19 Uncaught TypeError: weebotLiteAdmin.formSelectFiles is not a function

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:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in weebotlite/assets to your readme.txt
You can look at the official readme.txt

weebotlite/weebotLite.php 85% from 13 tests

The principal PHP file in "weebotLite" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("weebotlite.php" instead of "weebotLite.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6,948 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP497451,6213,981
CSS780711,378
PO File24760978
JavaScript57264580
YAML31031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity35.50
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods88
▷ Static methods44.55%
▷ Public methods8394.32%
▷ Protected methods00.00%
▷ Private methods55.68%
Functions4
▷ Named functions4100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.52MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/img/chat.icon.white.png7.50KB4.67KB▼ 37.68%
assets/icon-128x128.png4.82KB2.65KB▼ 45.04%
public/assets/img/chat.icon.upload.png2.48KB1.63KB▼ 34.27%
public/assets/img/close.icon.png1.95KB1.03KB▼ 47.09%
public/assets/img/chat.icon.black.png15.43KB5.32KB▼ 65.49%