83% dvs-quick-hotline

Code Review | DVS Quick Hotline

WordPress plugin DVS Quick Hotline scored83%from 54 tests.

About plugin

  • Plugin page: dvs-quick-hotline
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2018
  • Latest release: Nov 24, 2018
  • Number of updates: 6
  • Update frequency: every 6.0 days
  • Top authors: tuantavnu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by DVS Quick Hotline
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.38 ▼1.60
Dashboard /wp-admin3.31 ▼0.0450.67 ▼30.07
Posts /wp-admin/edit.php3.36 ▲0.0051.37 ▼3.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.18 ▼15.94
Media Library /wp-admin/upload.php3.23 ▲0.0037.56 ▼0.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for DVS Quick Hotline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12514.24 ▼0.112.12 ▲0.3251.73 ▲7.25
Dashboard /wp-admin2,214 ▲375.70 ▲0.0384.20 ▼5.8542.88 ▲1.57
Posts /wp-admin/edit.php2,125 ▲251.96 ▼0.0540.95 ▲1.3240.35 ▲1.19
Add New Post /wp-admin/post-new.php1,393 ▼13320.56 ▼2.43594.57 ▼35.4953.49 ▼0.84
Media Library /wp-admin/upload.php1,422 ▲254.28 ▲0.0995.80 ▼0.4841.79 ▼2.12

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/dvs-quick-hotline/dvs_quick_hotline.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Stable tag: No value
  • Screenshots: Screenshot #1 (2.) image not found
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

dvs-quick-hotline/dvs_quick_hotline.php 92% from 13 tests

The main PHP script in "DVS Quick Hotline" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dvs-quick-hotline.php" instead of "dvs_quick_hotline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin158 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1111131
PHP131227

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
zalo_cicle_icon.png14.65KB6.41KB▼ 56.26%
message503.png0.84KB0.98KB0.00%