83% button-visually-impaired

Code Review | Button visually impaired

WordPress plugin Button visually impaired scored 83% from 54 tests.

About plugin

  • Plugin page: button-visually-i...
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-5.8
  • WordPress version: 6.3.1
  • First release: Nov 21, 2015
  • Latest release: Sep 1, 2021
  • Number of updates: 267
  • Update frequency: every 7.9 days
  • Top authors: veks (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active / 57,939 total downloads


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: ▲0.35MB] [CPU: ▼1.94ms] Passed 4 tests

An overview of server-side resources used by Button visually impaired
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3746.16 ▲0.86
Dashboard /wp-admin3.70 ▲0.3947.96 ▼2.24
Posts /wp-admin/edit.php3.75 ▲0.3954.16 ▲4.67
Add New Post /wp-admin/post-new.php6.22 ▲0.3389.52 ▼8.44
Media Library /wp-admin/upload.php3.56 ▲0.3337.93 ▲2.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Button visually impaired
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.28 ▼1.485.28 ▲3.6542.93 ▲5.56
Dashboard /wp-admin2,221 ▲335.86 ▲0.96106.64 ▼3.7243.50 ▼1.77
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0739.55 ▲0.3134.62 ▼1.99
Add New Post /wp-admin/post-new.php1,543 ▼223.08 ▲4.73658.86 ▲28.8346.84 ▼4.27
Media Library /wp-admin/upload.php1,400 ▲94.18 ▼0.0894.49 ▼4.2740.34 ▼2.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Activate.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/FieldsAdmin/Fields.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Admin.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Widget.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\FieldsAdmin\\Fields' not found in wp-content/plugins/button-visually-impaired/include/src/Core/FieldsAdmin/Text.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Upgrade.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\FieldsAdmin\\Fields' not found in wp-content/plugins/button-visually-impaired/include/src/Core/FieldsAdmin/Select.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Bvi\\Core\\get_option() in wp-content/plugins/button-visually-impaired/include/src/Core/Core.php:60
    • > PHP Fatal error
      Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Bvi.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

button-visually-impaired/Button-visually-impaired.php 77% from 13 tests

"Button visually impaired" version 2.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("button-visually-impaired.php" instead of "Button-visually-impaired.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 679 characters long)

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
There were no executable files found in this plugin5,747 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PO File16469198

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.94
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes00.00%
▷ Static methods2226.51%
▷ Public methods7995.18%
▷ Protected methods11.20%
▷ Private methods33.61%
▷ Named functions228.57%
▷ Anonymous functions571.43%
▷ Global constants450.00%
▷ Class constants450.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin