77% elizaibot-chatbots

Code Review | Elizaibots

WordPress plugin Elizaibots scored77%from 54 tests.

About plugin

  • Plugin page: elizaibot-chatbots
  • Plugin version: v1.0.2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Feb 1, 2016
  • Number of updates: 17
  • Update frequency: every 51.1 days
  • Top authors: liseperu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.29ms] Passed 4 tests

Server-side resources used by Elizaibots
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.79 ▼0.76
Dashboard /wp-admin3.33 ▼0.0252.41 ▼17.95
Posts /wp-admin/edit.php3.38 ▲0.0253.13 ▼0.39
Add New Post /wp-admin/post-new.php5.91 ▲0.02105.22 ▲2.25
Media Library /wp-admin/upload.php3.25 ▲0.0237.97 ▼2.04
Elizaibots /wp-admin/options-general.php?page=elizaibot_info3.2235.99

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Elizaibots: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲11513.55 ▼0.819.94 ▲7.7942.33 ▼1.85
Dashboard /wp-admin2,196 ▲165.57 ▼0.0688.97 ▼1.2241.48 ▼1.25
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0836.08 ▲0.1434.81 ▼0.10
Add New Post /wp-admin/post-new.php1,539 ▲418.28 ▼0.15626.16 ▼35.8971.83 ▲0.25
Media Library /wp-admin/upload.php1,398 ▲44.16 ▼0.0194.17 ▼5.3941.85 ▼3.32
Elizaibots /wp-admin/options-general.php?page=elizaibot_info8751.9923.2330.06

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/elizaibot-chatbots/lib/chat.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/elizaibot-chatbots/elizaibots.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Donate link: Please fix this invalid URI: "Paypal (elizaibeth@elizaibeth.com)"
You can take inspiration from this readme.txt

elizaibot-chatbots/elizaibots.php 77% from 13 tests

The principal PHP file in "Elizaibots" v. v1.0.2... is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("elizaibot-chatbots.php" instead of "elizaibots.php")
  • Description: The description should be shorter than 140 characters (currently 214 characters long)
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "v1.0.2...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin257 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44820174
JavaScript112948
CSS17035

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin