84% translatewise-chat

Code Review | Askly

WordPress plugin Askly scored84%from 54 tests.

About plugin

  • Plugin page: translatewise-chat
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2021
  • Latest release: Aug 19, 2022
  • Number of updates: 9
  • Update frequency: every 41.2 days
  • Top authors: hanstranslatewise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,451 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.69ms] Passed 4 tests

An overview of server-side resources used by Askly
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.86 ▲6.24
Dashboard /wp-admin3.33 ▲0.0342.67 ▼1.16
Posts /wp-admin/edit.php3.39 ▲0.0350.26 ▲5.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.18 ▼13.74
Media Library /wp-admin/upload.php3.26 ▲0.0335.42 ▲3.11
Askly chat /wp-admin/options-general.php?page=translatewise-chat3.2330.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Askly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.19 ▼1.171.76 ▲0.1543.31 ▲1.68
Dashboard /wp-admin2,206 ▲155.79 ▲0.88107.57 ▼0.5437.40 ▼6.68
Posts /wp-admin/edit.php2,095 ▲92.05 ▲0.0639.05 ▲0.1135.33 ▲2.39
Add New Post /wp-admin/post-new.php1,519 ▼1723.34 ▼0.02642.72 ▼38.9067.50 ▲13.69
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.03100.11 ▼1.1942.47 ▼5.08
Askly chat /wp-admin/options-general.php?page=translatewise-chat8162.1625.5939.13

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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/translatewise-chat/translatewise-chat.php:14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/translatewise-chat/views/settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: askly, chat, live-chat, translatewise

translatewise-chat/translatewise-chat.php Passed 13 tests

The primary PHP file in "Askly" version 1.1.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Allows you to insert Askly chat code to enable chat for your website

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 detected169 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21815102
CSS112066
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin