74% tapchat

Code Review | TapChat

WordPress plugin TapChat scored74%from 54 tests.

About plugin

  • Plugin page: tapchat
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2022
  • Latest release: Sep 8, 2022
  • Number of updates: 14
  • Update frequency: every 6.9 days
  • Top authors: tapchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /653 total downloads

Benchmarks

Plugin footprint 65% 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.04MB] [CPU: ▼5.56ms] Passed 4 tests

A check of server-side resources used by TapChat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.38 ▼4.35
Dashboard /wp-admin3.34 ▲0.0447.19 ▼1.33
Posts /wp-admin/edit.php3.40 ▲0.0442.71 ▼2.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.93 ▼13.24
Media Library /wp-admin/upload.php3.27 ▲0.0434.00 ▼2.43
TapchatWp /wp-admin/admin.php?page=tapchat3.2531.98
Call History /wp-admin/admin.php?page=tapchat-call3.3032.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: 2 new tables, 6 new options
New tables
wp_tapchat_customer_request
wp_tapchat_customer
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by TapChat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲17114.07 ▼0.5245.35 ▲43.3841.65 ▼5.41
Dashboard /wp-admin2,202 ▲255.56 ▼0.0186.77 ▼3.5680.33 ▲37.13
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0333.94 ▲0.8833.62 ▼5.96
Add New Post /wp-admin/post-new.php1,559 ▲3322.94 ▼0.30664.19 ▼24.2096.08 ▲44.55
Media Library /wp-admin/upload.php1,425 ▲224.20 ▼0.0293.79 ▼14.9276.54 ▲29.36
TapchatWp /wp-admin/admin.php?page=tapchat1,0362.8665.6631.48
Call History /wp-admin/admin.php?page=tapchat-call8542.4052.6927.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_tapchat_customer
    • wp_tapchat_customer_request
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/tapchat/public/templates/tapchat_icon.php:1
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_tapchat_requests() on null in wp-content/plugins/tapchat/admin/templates/tapchat-call-history.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tapchat/includes/class-tapchat-api.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/tapchat/tapchat.php:14
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tapchat/includes/class-tapchat-api.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tapchat/public/tapchatPublic.php:8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tapchat/includes/class-tapchat-api.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tapchat/admin/tapchatAdmin.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/tapchat/public/templates/tapchat.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_PageDropdown' not found in wp-content/plugins/tapchat/admin/Walker_PageDropdown_Multiple_tapchat.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: mobile app, click to chat, click to call, live call, video support...

tapchat/tapchat.php Passed 13 tests

The main file in "TapChat" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
This pluin provide an integration between tapchat Mobile App

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
Everything looks great! No dangerous files found in this plugin2,021 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP10147911,065
CSS3196154717
JavaScript61722239

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity18.83
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods11.96%
▷ Public methods4690.20%
▷ Protected methods00.00%
▷ Private methods59.80%
Functions11
▷ Named functions218.18%
▷ Anonymous functions981.82%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/public-icon.png38.07KB14.34KB▼ 62.33%
assets/images/icon.png0.57KB0.57KB0.34%
public/assets/images/default.png72.87KB28.94KB▼ 60.28%