62% accessibility-help-button

Code Review | Call Now Accessibility Button

WordPress plugin Call Now Accessibility Button scored62%from 54 tests.

About plugin

  • Plugin page: accessibility-hel...
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2019
  • Latest release: May 31, 2023
  • Number of updates: 31
  • Update frequency: every 50.8 days
  • Top authors: stpetedesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,178 total downloads

Benchmarks

Plugin footprint 65% 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: ▼0.72MB] [CPU: ▼35.74ms] Passed 4 tests

A check of server-side resources used by Call Now Accessibility Button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2144.97 ▲3.67
Dashboard /wp-admin3.24 ▼0.1126.74 ▼38.11
Posts /wp-admin/edit.php3.24 ▼0.1224.09 ▼23.02
Add New Post /wp-admin/post-new.php3.24 ▼2.6524.91 ▼69.88
Media Library /wp-admin/upload.php3.24 ▲0.0124.96 ▼11.93
Accessiblity Button /wp-admin/options-general.php?page=aa-call3.2424.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Call Now Accessibility Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲15113.85 ▼0.588.31 ▲6.3644.60 ▲0.61
Dashboard /wp-admin2,220 ▲324.88 ▼0.97105.67 ▼12.1043.31 ▲2.91
Posts /wp-admin/edit.php2,100 ▲112.04 ▼0.0136.43 ▲0.8230.43 ▼2.58
Add New Post /wp-admin/post-new.php1,524 ▲423.43 ▲0.01656.12 ▼13.2755.59 ▲0.75
Media Library /wp-admin/upload.php1,396 ▲54.19 ▼0.0199.33 ▼6.0443.60 ▼2.68
Accessiblity Button /wp-admin/options-general.php?page=aa-call8482.0326.1057.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=aa-call
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/accessibility-help-button/public/partials/aa-call-public-display.php
    • > /wp-content/plugins/accessibility-help-button/includes/pisol.class.form.php
    • > /wp-content/plugins/accessibility-help-button/admin/partials/aa-call-admin-display.php
  • 4× PHP files trigger server errors when accessed directly:
    • > 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-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:91
    • > 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
No browser errors were detected

Optimizations

Plugin configuration 90% 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:
  • Donate link: Please fix this invalid url: "www.stpetedesign.com"
The official readme.txt is a good inspiration

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

"Call Now Accessibility Button" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)
  • Main file name: Even though not officially enforced, the main 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,065 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP19283559756
CSS25920291
JavaScript235418

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
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%