84% slaask

Code Review | Slaask

WordPress plugin Slaask scored 84% from 54 tests.

About plugin

  • Plugin page: slaask
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Oct 7, 2019
  • Number of updates: 16
  • Update frequency: every 76.9 days
  • Top authors: rdlh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 4,338 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Slaask
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.59 ▼13.64
Dashboard /wp-admin3.32 ▲0.0255.45 ▼0.32
Posts /wp-admin/edit.php3.37 ▲0.0146.49 ▼7.75
Add New Post /wp-admin/post-new.php5.90 ▲0.01131.08 ▲37.02
Media Library /wp-admin/upload.php3.24 ▲0.0140.23 ▲3.15
Slaask /wp-admin/tools.php?page=slaask-settings3.2162.42

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Slaask: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6414.97 ▲0.3311.60 ▲9.0245.19 ▼15.09
Dashboard /wp-admin2,207 ▲195.79 ▲0.86104.01 ▼4.8949.09 ▲0.92
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0356.15 ▲8.2244.18 ▲3.26
Add New Post /wp-admin/post-new.php1,535 ▲1123.21 ▲0.02747.91 ▲93.7065.06 ▲9.07
Media Library /wp-admin/upload.php1,392 ▲44.11 ▼0.11130.37 ▲14.9054.08 ▲6.70
Slaask /wp-admin/tools.php?page=slaask-settings8112.0230.3640.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/slaask/slaask.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: slaask, support, livechat, chat, wordpress

slaask/slaask.php Passed 13 tests

The main PHP script in "Slaask" version 2.0 is automatically included on every request by WordPress
107 characters long description:
Your customer service app for Slack. Bring all your team -and client!- communication together in one place.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291393

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin