84% anhlinh-call-button

Code Review | Anhlinh Contact List, Messages, Zalo, Email, Call Button

WordPress plugin Anhlinh Contact List, Messages, Zalo, Email, Call Button scored84%from 54 tests.

About plugin

  • Plugin page: anhlinh-call-button
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8
  • WordPress version: 6.3.1
  • First release: Aug 14, 2021
  • Latest release: Aug 14, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: thanhansoft (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /661 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.90ms] Passed 4 tests

An overview of server-side resources used by Anhlinh Contact List, Messages, Zalo, Email, Call Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.86 ▼7.64
Dashboard /wp-admin3.34 ▲0.0450.24 ▼2.50
Posts /wp-admin/edit.php3.40 ▲0.0451.93 ▼6.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.03 ▼19.28
Media Library /wp-admin/upload.php3.27 ▲0.0439.05 ▲1.13

Server storage [IO: ▲0.03MB] [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, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Anhlinh Contact List, Messages, Zalo, Email, Call Button
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲8613.23 ▼1.121.74 ▼0.2742.17 ▼2.56
Dashboard /wp-admin2,225 ▲404.80 ▼0.2499.32 ▼6.1941.19 ▼1.25
Posts /wp-admin/edit.php2,108 ▲191.99 ▼0.0439.22 ▼0.7936.28 ▼1.52
Add New Post /wp-admin/post-new.php1,527 ▲417.48 ▼5.75692.64 ▲20.5456.88 ▼7.66
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.0795.18 ▼8.4545.23 ▼2.24

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/anhlinh-call-button/anhlinh-contact-list.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/anhlinh-call-button/views/setting-page.php:3

User-side errors Passed 1 test

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


Plugin configuration 96% from 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
4 plugin tags: hotline button web, anh linh contact list, list contact on web, phonering

anhlinh-call-button/anhlinh-contact-list.php 92% from 13 tests

The main file in "Anhlinh Contact List, Messages, Zalo, Email, Call Button" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("anhlinh-call-button.php" instead of "anhlinh-contact-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin196 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity8.00
▷ Maximum class complexity14.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions342.86%
▷ Anonymous functions457.14%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin