94% vihv-skype-and-callto-links

Code Review | Vihv Skype and Callto links

WordPress plugin Vihv Skype and Callto links scored 94% from 54 tests.

About plugin

  • Plugin page: vihv-skype-and-ca...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.2
  • WordPress version: 5.9.2
  • First release: Apr 1, 2013
  • Latest release: Jul 16, 2013
  • Number of updates: 16
  • Update frequency: every 6.6 days
  • Top authors: Vihv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,212 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼293.67ms] Passed 4 tests

Analyzing server-side resources used by Vihv Skype and Callto links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0159.08 ▼0.31
Dashboard /wp-admin3.41 ▲0.0135.80 ▼3.81
Posts /wp-admin/edit.php3.65 ▲0.0141.00 ▼3.83
Add New Post /wp-admin/post-new.php6.88 ▼0.0899.47 ▼1,166.71
Media Library /wp-admin/upload.php3.30 ▲0.0130.25 ▲4.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Vihv Skype and Callto links: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.86 ▲0.495.78 ▼0.762.27 ▲0.30
Dashboard /wp-admin2,892 ▲316.03 ▼0.14115.73 ▼17.41152.31 ▼11.00
Posts /wp-admin/edit.php2,688 ▲33.23 ▼0.0167.64 ▲2.36178.87 ▲32.99
Add New Post /wp-admin/post-new.php1,773 ▲11222.01 ▲5.39432.07 ▲22.90156.55 ▼38.23
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.00154.97 ▲2.63189.42 ▼2.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vihv-skype-and-callto-links/vihv-skype-and-callto-links.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

vihv-skype-and-callto-links/vihv-skype-and-callto-links.php 92% from 13 tests

The primary PHP file in "Vihv Skype and Callto links" version 1.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png53.35KB22.80KB▼ 57.26%