89% search-clickable-phone-number-for-mobile-device

Code Review | Search Clickable Phone Number for Mobile Device

WordPress plugin Search Clickable Phone Number for Mobile Device scored89%from 54 tests.

About plugin

  • Plugin page: search-clickable-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2016
  • Latest release: Jun 14, 2022
  • Number of updates: 10
  • Update frequency: every 218.4 days
  • Top authors: brainvireinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,371 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.02ms] Passed 4 tests

Analyzing server-side resources used by Search Clickable Phone Number for Mobile Device
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.58 ▼3.87
Dashboard /wp-admin3.34 ▲0.0445.00 ▼2.91
Posts /wp-admin/edit.php3.39 ▲0.0442.24 ▼5.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.93 ▼15.97
Media Library /wp-admin/upload.php3.26 ▲0.0336.62 ▲2.58

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Search Clickable Phone Number for Mobile Device
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.18 ▼1.421.67 ▲0.0740.55 ▼0.04
Dashboard /wp-admin2,221 ▲305.86 ▼0.04104.04 ▲2.1273.81 ▲33.45
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0133.16 ▼2.8632.18 ▼5.64
Add New Post /wp-admin/post-new.php1,681 ▲15122.48 ▲4.16658.93 ▼2.8753.81 ▲1.44
Media Library /wp-admin/upload.php1,403 ▲184.13 ▼0.08111.30 ▲16.1044.79 ▲2.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

search-clickable-phone-number-for-mobile-device/search-clickable-phone-number-for-mobile-device.php 92% from 13 tests

The primary PHP file in "Search Clickable Phone Number for Mobile Device" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)

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
Good job! No executable or dangerous file extensions detected245 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22415245

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/search-phone-number-1.png0.57KB0.51KB▼ 10.43%
images/search-phone-number-2.png0.62KB0.49KB▼ 20.72%
images/search-phone-number.png0.63KB0.63KB0.00%