84% contact-us-bottom-bar

Code Review | Contact Us Setting

WordPress plugin Contact Us Setting scored 84% from 54 tests.

About plugin

  • Plugin page: contact-us-bottom...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Mar 17, 2021
  • Latest release: Apr 8, 2021
  • Number of updates: 4
  • Update frequency: every 5.7 days
  • Top authors: dangminhhai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,135 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.05MB] [CPU: ▼6.38ms] Passed 4 tests

An overview of server-side resources used by Contact Us Setting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.56 ▼1.43
Dashboard /wp-admin3.36 ▲0.0545.15 ▲0.14
Posts /wp-admin/edit.php3.41 ▲0.0550.70 ▼0.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.53 ▼22.04
Media Library /wp-admin/upload.php3.28 ▲0.0535.00 ▼1.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Us Setting
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9113.30 ▼1.061.69 ▼0.4151.02 ▲11.17
Dashboard /wp-admin2,219 ▲285.81 ▼0.0997.01 ▼9.8138.54 ▼5.01
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0138.86 ▼2.4035.53 ▲0.31
Add New Post /wp-admin/post-new.php1,549 ▲623.04 ▲4.75637.50 ▲28.1051.89 ▼7.06
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0594.13 ▼8.4641.61 ▼2.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/contact-us-bottom-bar/settings.php
    • > /wp-content/plugins/contact-us-bottom-bar/contact-us-bottom-bar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: hotline, zalo

contact-us-bottom-bar/contact-us-bottom-bar.php Passed 13 tests

The principal PHP file in "Contact Us Setting" v. 1.0.2 is loaded by WordPress automatically on each request
73 characters long description:
Plugin hiển thị số hotline, facebook messenger, zalo và google map

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
No dangerous file extensions were detected201 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34410182
CSS10019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected