84% speed-contact-bar

Code Review | Speed Contact Bar

WordPress plugin Speed Contact Bar scored84%from 54 tests.

About plugin

  • Plugin page: speed-contact-bar
  • Plugin version: 6.12.1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Aug 28, 2023
  • Number of updates: 150
  • Update frequency: every 22.9 days
  • Top authors: Hinjiriyo (88%)kybernetikservices (12.67%)

Code review

54 tests

User reviews

56 reviews

Install metrics

8,000+ active /260,691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼2.36ms] Passed 4 tests

Analyzing server-side resources used by Speed Contact Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2033.95 ▼5.23
Dashboard /wp-admin3.90 ▲0.5547.10 ▼2.57
Posts /wp-admin/edit.php4.01 ▲0.6146.50 ▲1.05
Add New Post /wp-admin/post-new.php6.48 ▲0.5587.12 ▼2.68
Media Library /wp-admin/upload.php3.82 ▲0.5538.47 ▲3.97
Speed Contact Bar /wp-admin/options-general.php?page=speed-contact-bar3.7933.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
speed-contact-bar-options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Speed Contact Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲13913.35 ▼1.032.09 ▲0.2945.74 ▼6.49
Dashboard /wp-admin2,227 ▲385.05 ▼0.85110.60 ▲2.0839.38 ▼5.68
Posts /wp-admin/edit.php2,112 ▲232.41 ▲0.3838.56 ▲1.4533.04 ▼1.00
Add New Post /wp-admin/post-new.php1,529 ▼617.65 ▼5.44657.72 ▲54.5635.90 ▼21.53
Media Library /wp-admin/upload.php1,412 ▲304.52 ▲0.2599.24 ▼11.2140.59 ▼4.37
Speed Contact Bar /wp-admin/options-general.php?page=speed-contact-bar3,3412.4353.9283.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/speed-contact-bar/admin/views/admin.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

speed-contact-bar/speed-contact-bar.php Passed 13 tests

The entry point to "Speed Contact Bar" version 6.12.1.1 is a PHP file that has certain tags in its header comment area
94 characters long description:
Let your website visitors get in touch with you easily with permanent seen contact information

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 plugin2,202 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP62648711,626
SVG3001500
CSS141370
JavaScript1216

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity124.00
▷ Minimum class complexity82.00
▷ Maximum class complexity166.00
Average method complexity6.72
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods43
▷ Static methods716.28%
▷ Public methods3274.42%
▷ Protected methods00.00%
▷ Private methods1125.58%
Functions0
▷ Named functions00.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
5 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/images/soundcloud.png1.84KB1.96KB0.00%
public/assets/images/yelp.png87.57KB1.72KB▼ 98.04%
public/assets/images/whatsapp.png3.85KB2.44KB▼ 36.50%
public/assets/images/snap.png2.00KB1.56KB▼ 21.78%
public/assets/images/imdb.png3.65KB1.91KB▼ 47.61%