84% telephone-number-linker

Code Review | Telephone Number Linker

WordPress plugin Telephone Number Linker scored84%from 54 tests.

About plugin

  • Plugin page: telephone-number-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Feb 17, 2013
  • Latest release: Sep 12, 2013
  • Number of updates: 7
  • Update frequency: every 30.9 days
  • Top authors: stoatoffear (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

2,000+ active /18,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.84ms] Passed 4 tests

A check of server-side resources used by Telephone Number Linker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.87 ▼0.41
Dashboard /wp-admin3.31 ▲0.0050.53 ▼5.73
Posts /wp-admin/edit.php3.36 ▲0.0052.71 ▲0.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.17 ▼30.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.36 ▲1.29

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Telephone Number Linker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.061.88 ▲0.0443.43 ▼3.72
Dashboard /wp-admin2,198 ▲215.64 ▼0.0592.03 ▲4.0136.96 ▼7.68
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0336.42 ▼4.5031.45 ▼5.75
Add New Post /wp-admin/post-new.php1,526 ▼917.49 ▼5.75682.36 ▲22.1962.47 ▲10.62
Media Library /wp-admin/upload.php1,394 ▼64.34 ▲0.1296.43 ▼8.2145.32 ▲0.64

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
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/telephone-number-linker/telnumlinker.php:21
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/telephone-number-linker/telnumlinker.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: phone, apps, mobile telephony, mobile device, smartphone...

telephone-number-linker/telnumlinker.php 92% from 13 tests

The primary PHP file in "Telephone Number Linker" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("telephone-number-linker.php" instead of "telnumlinker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin31 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1122326
JavaScript114175

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected