84% ht-call-now

Code Review | HT CALL ME

WordPress plugin HT CALL ME scored84%from 54 tests.

About plugin

  • Plugin page: ht-call-now
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.2-5.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2019
  • Latest release: May 19, 2020
  • Number of updates: 9
  • Update frequency: every 26.3 days
  • Top authors: htweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,100 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.01MB] [CPU: ▼2.75ms] Passed 4 tests

Analyzing server-side resources used by HT CALL ME
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.75 ▼7.04
Dashboard /wp-admin3.31 ▲0.0146.42 ▼3.27
Posts /wp-admin/edit.php3.36 ▲0.0145.58 ▼1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.11 ▲0.77
Media Library /wp-admin/upload.php3.24 ▲0.0135.04 ▲2.52
Ht call now /wp-admin/options-general.php?page=ht-call-now3.2330.10

Server storage [IO: ▲1.77MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for HT CALL ME
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.27 ▼1.134.73 ▲3.0447.70 ▲3.02
Dashboard /wp-admin2,210 ▲224.86 ▲0.00108.15 ▼10.0040.98 ▼6.11
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0138.71 ▲1.3233.60 ▲2.38
Add New Post /wp-admin/post-new.php1,532 ▲1318.15 ▼5.05617.51 ▼40.1857.13 ▼16.27
Media Library /wp-admin/upload.php1,386 ▼24.27 ▲0.0496.30 ▲0.0439.92 ▼5.25
Ht call now /wp-admin/options-general.php?page=ht-call-now7902.0225.3825.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ht-call-now/ht-call-now.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ht-call-now/ht-call-now/includes/templatebackend.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ht-call-now/ht-call-now/ht-call-now.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ht-call-now/includes/templatebackend.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: contact, customers, sale, call, ssell

ht-call-now/ht-call-now.php Passed 13 tests

"HT CALL ME" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
The plugin add button call me now for website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,484 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS35727652
PHP35025128
PO File191033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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