10% click-to-call-synclio

Code Review | Synclio Click To Call

WordPress plugin Synclio Click To Call scored 10% from 54 tests.

About plugin

  • Plugin page: click-to-call-syn...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Jun 26, 2013
  • Latest release: Nov 8, 2013
  • Number of updates: 18
  • Update frequency: every 7.5 days
  • Top authors: shaunc869 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,879 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/click-to-call-synclio/synclio.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; Synclio has a deprecated constructor

Server metrics [RAM: ▼2.40MB] [CPU: ▼349.59ms] Passed 4 tests

This is a short check of server-side resources used by Synclio Click To Call
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.97 ▼1.544.75 ▼54.30
Dashboard /wp-admin1.99 ▼1.424.53 ▼51.70
Posts /wp-admin/edit.php1.99 ▼1.654.59 ▼52.05
Add New Post /wp-admin/post-new.php1.99 ▼4.984.86 ▼1,240.30
Media Library /wp-admin/upload.php1.99 ▼1.304.17 ▼24.52

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
synclio_activated

Browser metrics Passed 4 tests

This is an overview of browser requirements for Synclio Click To Call
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,005 ▲25117.23 ▲1.6311.22 ▲5.182.65 ▲0.06
Dashboard /wp-admin2,945 ▲926.76 ▲0.52124.74 ▲1.58206.07 ▲34.98
Posts /wp-admin/edit.php2,728 ▲432.99 ▼0.24121.13 ▲59.08186.99 ▼6.79
Add New Post /wp-admin/post-new.php1,705 ▲3920.12 ▼0.95407.37 ▼30.87165.96 ▼12.39
Media Library /wp-admin/upload.php1,748 ▲505.85 ▲0.35154.15 ▲7.26222.55 ▲34.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/click-to-call-synclio/synclio.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; Synclio has a deprecated constructor
  • This plugin does not fully uninstall, leaving 2 options in the database
    • synclio_id
    • synclio_activated

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× 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/click-to-call-synclio/synclio.php:17
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/click-to-call-synclio/synclio.php on line 1
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-to-call-synclio/synclio.php on line 1
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/click-to-call-synclio/synclio.php on line 1

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Contributors: Contributors not specified
The official readme.txt might help

click-to-call-synclio/synclio.php 92% from 13 tests

The main PHP script in "Synclio Click To Call" version 2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("click-to-call-synclio.php" instead of "synclio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,343 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS111015942
PHP1126143401

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity23.50
▷ Minimum class complexity11.00
▷ Maximum class complexity36.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1083.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_inc/images/plugin_banner_bg.png4.81KB1.24KB▼ 74.19%
_inc/images/plugin_banner_bg-2x.png8.28KB4.10KB▼ 50.50%