88% tolktalkcx-contact-widget

Code Review | tolktalkCX Contact Widget

WordPress plugin tolktalkCX Contact Widget scored88%from 54 tests.

About plugin

  • Plugin page: tolktalkcx-contac...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.7
  • WordPress version: 6.3.1
  • First release: Dec 11, 2020
  • Latest release: Jun 15, 2021
  • Number of updates: 21
  • Update frequency: every 8.9 days
  • Top authors: tolktalkcx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 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
Install script ran successfully

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

A check of server-side resources used by tolktalkCX Contact Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.78 ▼2.69
Dashboard /wp-admin3.38 ▲0.0446.48 ▼15.45
Posts /wp-admin/edit.php3.49 ▲0.1446.02 ▲3.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.42 ▼21.71
Media Library /wp-admin/upload.php3.30 ▲0.0736.07 ▼0.75
tolktalkCX Contact Widget /wp-admin/options-general.php?page=tolktalk-widget-setting-admin3.2830.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
widget_tolktalkcxwp_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for tolktalkCX Contact Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.57 ▼1.181.76 ▲0.1745.19 ▼2.64
Dashboard /wp-admin2,207 ▲225.88 ▲0.04104.48 ▼6.6444.29 ▼1.05
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0336.33 ▼2.7833.06 ▲2.28
Add New Post /wp-admin/post-new.php1,536 ▲1723.23 ▲0.01670.58 ▼20.2962.87 ▲7.32
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.03109.33 ▲3.2044.24 ▲0.76
tolktalkCX Contact Widget /wp-admin/options-general.php?page=tolktalk-widget-setting-admin8272.0325.1456.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_tolktalkcxwp_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive 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)
Everything seems fine on the user side

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please describe screenshot #1 in tolktalkcx-contact-widget/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

tolktalkcx-contact-widget/tolktalk-widget.php 69% from 13 tests

"tolktalkCX Contact Widget" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Please don't use more than 140 characters for the plugin description (currently 206 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("tolktalkcx-contact-widget.php" instead of "tolktalk-widget.php")
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected445 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP696274445

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity9.33
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods418.18%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/tolktalkcx.png43.76KB11.82KB▼ 72.99%