83% all-in-one-contact-buttons-wpshare247

Code Review | All-in-one contact buttons - WPSHARE247

WordPress plugin All-in-one contact buttons - WPSHARE247 scored83%from 54 tests.

About plugin

  • Plugin page: all-in-one-contac...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2021
  • Latest release: Nov 24, 2022
  • Number of updates: 13
  • Update frequency: every 40.4 days
  • Top authors: website366 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /12,908 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.76ms] Passed 4 tests

An overview of server-side resources used by All-in-one contact buttons - WPSHARE247
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0752.67 ▲4.51
Dashboard /wp-admin3.38 ▲0.0844.88 ▼6.35
Posts /wp-admin/edit.php3.43 ▲0.0750.33 ▼0.82
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.11 ▼10.22
Media Library /wp-admin/upload.php3.30 ▲0.0735.87 ▲2.35
Configure Aio Contact /wp-admin/options-general.php?page=ws247-aio-ct-button-options3.3937.86

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for All-in-one contact buttons - WPSHARE247
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲9213.31 ▼1.062.43 ▲0.0938.79 ▼10.77
Dashboard /wp-admin2,229 ▲385.08 ▼0.78112.36 ▲3.8740.56 ▼2.32
Posts /wp-admin/edit.php2,117 ▲252.31 ▲0.3042.97 ▲3.2035.26 ▲1.48
Add New Post /wp-admin/post-new.php1,531 ▲121.41 ▲3.16643.10 ▲35.1335.96 ▼12.48
Media Library /wp-admin/upload.php1,405 ▲204.40 ▲0.2099.45 ▼5.7743.32 ▼2.95
Configure Aio Contact /wp-admin/options-general.php?page=ws247-aio-ct-button-options1,6272.6461.6432.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WS247_AIO_CT_BUTTON_SETTING_PAGE_SLUG - assumed 'WS247_AIO_CT_BUTTON_SETTING_PAGE_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/class.setting.page.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/class.setting.page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/option-form-template.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/define.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/theme_functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/tabs/tab_pro_general.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === all-in-one-contact-buttons-wpshare247 === )
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

all-in-one-contact-buttons-wpshare247/all-in-one-contact-buttons-wpshare247.php 92% from 13 tests

The principal PHP file in "All-in-one contact buttons - WPSHARE247" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected13,288 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PO File119153

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity18.00
▷ Minimum class complexity4.00
▷ Maximum class complexity32.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/messenger.png15.51KB0.80KB▼ 94.81%
assets/zalo.png21.82KB2.27KB▼ 89.61%