90% simple-contact-bar

Code Review | Simple Contact Bar

WordPress plugin Simple Contact Bar scored90%from 54 tests.

About plugin

  • Plugin page: simple-contact-bar
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 3, 2022
  • Latest release: Jul 17, 2023
  • Number of updates: 14
  • Update frequency: every 24.9 days
  • Top authors: tuncayteke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /348 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.80ms] Passed 4 tests

An overview of server-side resources used by Simple Contact Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1941.36 ▼2.37
Dashboard /wp-admin3.54 ▲0.2448.51 ▼8.87
Posts /wp-admin/edit.php3.66 ▲0.3052.59 ▲2.88
Add New Post /wp-admin/post-new.php6.13 ▲0.2387.87 ▼14.44
Media Library /wp-admin/upload.php3.47 ▲0.2339.28 ▲2.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Contact Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4013.90 ▼0.291.77 ▼0.3239.17 ▼4.16
Dashboard /wp-admin2,204 ▲295.57 ▼0.1687.19 ▼34.9839.51 ▼9.64
Posts /wp-admin/edit.php2,112 ▲122.00 ▼0.0035.07 ▼2.1531.87 ▼2.72
Add New Post /wp-admin/post-new.php1,538 ▲323.31 ▲5.03665.44 ▲33.6960.45 ▼9.72
Media Library /wp-admin/upload.php1,415 ▲154.16 ▲0.0599.82 ▼10.2844.03 ▼0.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: click to call bar, call now, popup contact buttons, whatsapp text button, call now button...

simple-contact-bar/simple-contact-bar.php 92% from 13 tests

The primary PHP file in "Simple Contact Bar" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 266 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,046 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP12491771,303
PO File2128141342
CSS26156334
Markdown138062
JavaScript1105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin