83% easy-call-now

Code Review | Easy Call Now by ThikShare

WordPress plugin Easy Call Now by ThikShare scored83%from 54 tests.

About plugin

  • Plugin page: easy-call-now
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Sep 20, 2017
  • Number of updates: 5
  • Update frequency: every 24.8 days
  • Top authors: dangngocbinh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /18,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.89ms] Passed 4 tests

A check of server-side resources used by Easy Call Now by ThikShare
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.61 ▲0.35
Dashboard /wp-admin3.39 ▲0.0948.41 ▼1.73
Posts /wp-admin/edit.php3.50 ▲0.1447.65 ▼0.87
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.86 ▼5.31
Media Library /wp-admin/upload.php3.31 ▲0.0839.26 ▲6.92
Easy Call Now /wp-admin/options-general.php?page=easy-call-now3.2833.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Call Now by ThikShare
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20313.92 ▼0.435.60 ▲3.7746.51 ▲2.05
Dashboard /wp-admin2,231 ▲535.17 ▲0.18101.27 ▼9.7636.74 ▼4.34
Posts /wp-admin/edit.php2,098 ▲92.33 ▲0.2841.20 ▲2.4937.44 ▲3.02
Add New Post /wp-admin/post-new.php1,574 ▲5524.16 ▲1.02669.18 ▼38.8930.02 ▼16.56
Media Library /wp-admin/upload.php1,411 ▲234.30 ▲0.06102.17 ▼4.9546.45 ▲1.49
Easy Call Now /wp-admin/options-general.php?page=easy-call-now1,3542.6166.9739.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-call-now/admin/partials/easy-callnow-admin-display.php
    • > /wp-content/plugins/easy-call-now/public/partials/easy-callnow-public-display.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in easy-call-now/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-call-now === )
  • Donate link: Invalid URI ("thikshare.com")
You can look at the official readme.txt

easy-call-now/easy-callnow.php 85% from 13 tests

Analyzing the main PHP file in "Easy Call Now by ThikShare" version 1.1.0
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-call-now.php" instead of "easy-callnow.php")

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
There were no executable files found in this plugin585 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12140530361
CSS2110215
JavaScript23279

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/phone-ring.png0.36KB0.37KB0.00%