66% headstore-call-button

Code Review | HEADSTORE PAYCALL Button

WordPress plugin HEADSTORE PAYCALL Button scored66%from 54 tests.

About plugin

  • Plugin page: headstore-call-bu...
  • Plugin version: 0.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5.3
  • WordPress version: 6.3.1
  • First release: Apr 23, 2014
  • Latest release: Jun 28, 2016
  • Number of updates: 26
  • Update frequency: every 31.2 days
  • Top authors: Headstore (88.46%)mrvv (15.38%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,813 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: ▼14.54MB] [CPU: ▼3,008,577.62ms] Passed 4 tests

Analyzing server-side resources used by HEADSTORE PAYCALL Button
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3348.33 ▲1.48
Dashboard /wp-admin3.68 ▼57.9358.25 ▼12,034,275.91
Posts /wp-admin/edit.php3.65 ▲0.2558.18 ▲3.80
Add New Post /wp-admin/post-new.php5.19 ▼0.7467.41 ▼39.83
Media Library /wp-admin/upload.php3.54 ▲0.2643.43 ▲5.90
Accounts /wp-admin/edit.php?post_type=headstore_account3.6539.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: no new tables, 8 new options
New WordPress options
headstore-call-button
widget_headstore-widget
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

HEADSTORE PAYCALL Button: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,194 ▲43313.53 ▼0.849.06 ▲6.7444.25 ▲1.75
Dashboard /wp-admin2,486 ▲3095.69 ▲0.1294.65 ▲6.9242.86 ▲1.95
Posts /wp-admin/edit.php2,375 ▲2722.41 ▲0.4137.08 ▲0.9036.94 ▼0.40
Add New Post /wp-admin/post-new.php1,691 ▲16324.70 ▲1.65702.01 ▲25.0334.42 ▼23.04
Media Library /wp-admin/upload.php1,691 ▲2884.41 ▲0.19106.55 ▲5.7746.86 ▼2.39
Accounts /wp-admin/edit.php?post_type=headstore_account1,3762.3434.7230.84
First Account /wp-admin/headstore-call-button-admin.php260.420.0917.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • db_upgraded
    • widget_headstore-widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • headstore-call-button

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=headstore_account
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=headstore_account
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/headstore-call-button/public/partials/iframe_call_me.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/headstore-call-button/admin/widgets/call_me_button.php:3
    • > PHP Notice
      Undefined variable: group_or_expert_id in wp-content/plugins/headstore-call-button/public/partials/iframe_call_me.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/headstore-call-button/admin/widgets/partials/call_me_button_form.php:3
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/headstore-call-button/public/partials/iframe_call_me.php on line 4
    • > PHP Notice
      Undefined variable: campaign_id in wp-content/plugins/headstore-call-button/public/partials/iframe_call_me.php on line 3
    • > PHP Notice
      Undefined variable: message_create in wp-content/plugins/headstore-call-button/admin/partials/meta_boxes_account.php on line 22
    • > PHP Notice
      Undefined variable: design in wp-content/plugins/headstore-call-button/public/partials/iframe_call_me.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/headstore-call-button/admin/partials/step_create_account.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/headstore-call-button/admin/partials/meta_boxes_account.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/headstore-call-button-admin.php
    • > Network (severe)
    wp-admin/headstore-call-button-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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 require attention:
  • Tags: You are using too many tags: 36 tag instead of maximum 10
You can look at the official readme.txt

headstore-call-button/headstore-call-button.php 92% from 13 tests

This is the main PHP file of "HEADSTORE PAYCALL Button" version 0.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 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
There were no executable files found in this plugin2,564 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP309111,0131,969
JavaScript1015134392
PO File14554117
CSS4171256
XML20027
INI1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.17
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes521.74%
▷ Concrete classes1878.26%
▷ Final classes00.00%
Methods134
▷ Static methods42.99%
▷ Public methods11485.07%
▷ Protected methods00.00%
▷ Private methods2014.93%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants00.00%
▷ Class constants14100.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/headstore-icon-blue.png44.77KB0.67KB▼ 98.49%
images/headstore-icon.png54.89KB3.28KB▼ 94.03%