79% tellephant

Code Review | Tellephant

WordPress plugin Tellephant scored79%from 54 tests.

About plugin

  • Plugin page: tellephant
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Aug 19, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tellephantmessaging (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.62ms] Passed 4 tests

Analyzing server-side resources used by Tellephant
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.07 ▲0.93
Dashboard /wp-admin3.32 ▲0.0251.65 ▲1.60
Posts /wp-admin/edit.php3.37 ▲0.0247.17 ▼7.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.40 ▼35.30
Media Library /wp-admin/upload.php3.24 ▲0.0237.62 ▼0.47

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Tellephant
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.171.87 ▲0.3245.19 ▲4.56
Dashboard /wp-admin2,206 ▲185.91 ▲0.01105.31 ▼5.2041.66 ▲1.68
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0336.66 ▼1.2134.29 ▼2.15
Add New Post /wp-admin/post-new.php1,523 ▼1123.25 ▲0.13662.38 ▼33.3261.63 ▲5.34
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0499.33 ▼46.8846.38 ▼14.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tellephant/views/admin/setting_page.php
    • > /wp-content/plugins/tellephant/classes/Tellephant_setting_page.php
    • > /wp-content/plugins/tellephant/classes/Tellephant_woocommerce_hooks.php
    • > /wp-content/plugins/tellephant/includes/activation.php
    • > /wp-content/plugins/tellephant/includes/deactivation.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/tellephant/tellephant.php:41

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: whatsapp, messages

tellephant/tellephant.php Passed 13 tests

The principal PHP file in "Tellephant" v. 1.0.0 is loaded by WordPress automatically on each request
102 characters long description:
Connect Tellephant to your WooCommerce account and build relationships with your customers on WhatsApp

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,700 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP122981641,399
CSS1332206
JavaScript114095

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity19.88
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity8.95
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods210.53%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png55.77KB19.15KB▼ 65.67%
views/images/tellephant_logo.png47.70KB19.54KB▼ 59.04%
assets/screenshot-2.png79.56KB26.78KB▼ 66.35%
assets/screenshot-3.png98.52KB34.20KB▼ 65.29%
assets/screenshot-4.png88.80KB30.28KB▼ 65.90%