78% really-simple-click-to-call

Code Review | Really Simple Click To Call Bar

WordPress plugin Really Simple Click To Call Bar scored78%from 54 tests.

About plugin

  • Plugin page: really-simple-cli...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: May 31, 2019
  • Number of updates: 27
  • Update frequency: every 30.8 days
  • Top authors: Joe Nickdow (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active /43,635 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.03MB] [CPU: ▼6.99ms] Passed 4 tests

An overview of server-side resources used by Really Simple Click To Call Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.20 ▼5.98
Dashboard /wp-admin3.33 ▲0.0346.02 ▼4.28
Posts /wp-admin/edit.php3.38 ▲0.0345.47 ▼3.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.93 ▼14.22
Media Library /wp-admin/upload.php3.26 ▲0.0335.70 ▲1.57
Really Simple Click to Call /wp-admin/options-general.php?page=really_simple_click_to_call3.2025.11

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Really Simple Click To Call Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.33 ▼1.051.81 ▲0.0940.45 ▲1.13
Dashboard /wp-admin2,232 ▲415.02 ▲0.15116.39 ▲13.6942.59 ▲4.52
Posts /wp-admin/edit.php2,117 ▲252.29 ▲0.2434.70 ▼5.6530.13 ▼6.29
Add New Post /wp-admin/post-new.php1,531 ▼617.79 ▼5.38662.84 ▼27.2835.39 ▼16.05
Media Library /wp-admin/upload.php1,411 ▲234.42 ▲0.2596.82 ▲1.8540.48 ▼4.75
Really Simple Click to Call /wp-admin/options-general.php?page=really_simple_click_to_call1,0652.2552.1430.30

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=really_simple_click_to_call
    • > Notice in wp-content/plugins/really-simple-click-to-call/really-simple-click-to-call.php+147
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/really-simple-click-to-call/really-simple-click-to-call.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • License uri: Invalid URI found ("http:www.opensource.orglicensesgpl-license.php")
The official readme.txt is a good inspiration

really-simple-click-to-call/really-simple-click-to-call.php Passed 13 tests

The entry point to "Really Simple Click To Call Bar" version 1.0.6 is a PHP file that has certain tags in its header comment area
76 characters long description:
Add a simple click to call bar to the bottom of your page on mobile devices.

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
Everything looks great! No dangerous files found in this plugin204 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15619112
CSS19577
SVG11010
JavaScript1105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin