72% accessibility-help-button

Code Review | Call Now Accessibility Button

WordPress plugin Call Now Accessibility Button scored 72% from 54 tests.

About plugin

  • Plugin page: accessibility-hel...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 5.9.2
  • First release: Feb 8, 2019
  • Latest release: Jan 5, 2020
  • Number of updates: 20
  • Update frequency: every 16.6 days
  • Top authors: stpetedesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.06MB] [CPU: ▼328.49ms] Passed 4 tests

Server-side resources used by Call Now Accessibility Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2462.05 ▲12.83
Dashboard /wp-admin3.27 ▼0.1417.69 ▼15.02
Posts /wp-admin/edit.php3.27 ▼0.3718.98 ▼18.58
Add New Post /wp-admin/post-new.php3.27 ▼3.7019.70 ▼1,272.80
Media Library /wp-admin/upload.php3.27 ▼0.0316.03 ▼7.54
Accessiblity Button /wp-admin/options-general.php?page=aa-call3.2721.83

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Call Now Accessibility Button
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,887 ▲13416.55 ▲0.878.93 ▲2.402.34 ▼0.08
Dashboard /wp-admin2,900 ▲496.05 ▼0.23116.04 ▼17.71153.01 ▼5.51
Posts /wp-admin/edit.php2,703 ▲123.24 ▲0.0164.08 ▲0.82140.16 ▲0.08
Add New Post /wp-admin/post-new.php1,628 ▼4020.06 ▲0.91371.48 ▼41.21146.64 ▼5.94
Media Library /wp-admin/upload.php1,711 ▲135.54 ▲0.10144.23 ▲7.32185.36 ▲1.26
Accessiblity Button /wp-admin/options-general.php?page=aa-call1,0752.4356.25182.68

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
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=aa-call
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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 items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/accessibility-help-button/includes/pisol.class.form.php
    • > /wp-content/plugins/accessibility-help-button/public/partials/aa-call-public-display.php
    • > /wp-content/plugins/accessibility-help-button/admin/partials/aa-call-admin-display.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessibility-help-button/admin/class-aa-call-option-advance.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessibility-help-button/admin/class-aa-call-option.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessibility-help-button/admin/class-aa-call-aboutus.php:132
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessibility-help-button/admin/class-aa-call-pro.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt might help

accessibility-help-button/aa508-call.php 85% from 13 tests

The main PHP file in "Call Now Accessibility Button" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("accessibility-help-button.php" instead of "aa508-call.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,037 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP18276559728
CSS25920291
JavaScript235418

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/img2.png5.06KB2.61KB▼ 48.44%