82% accessible-poetry

Code Review | AccessibleWP Toolbar - WordPress Accessibility Toollbar

WordPress plugin AccessibleWP Toolbar - WordPress Accessibility Toollbar scored 82% from 54 tests.

About plugin

  • Plugin page: accessible-poetry
  • Plugin version: 4.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9
  • WordPress version: 5.9.2
  • First release: Apr 27, 2015
  • Latest release: Jan 29, 2022
  • Number of updates: 105
  • Update frequency: every 23.5 days
  • Top authors: digisphere (100%)

Code review

54 tests

User reviews

50 reviews

Install metrics

5,000+ active / 52,259 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.69MB] [CPU: ▼303.43ms] Passed 4 tests

This is a short check of server-side resources used by AccessibleWP Toolbar - WordPress Accessibility Toollbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.6658.10 ▲30.72
Dashboard /wp-admin3.67 ▲0.2638.50 ▼2.24
Posts /wp-admin/edit.php3.90 ▲0.2642.39 ▲4.64
Add New Post /wp-admin/post-new.php3.48 ▼3.5030.85 ▼1,217.47
Media Library /wp-admin/upload.php3.53 ▲0.2324.64 ▲1.36
Toolbar /wp-admin/admin.php?page=accessiblewp-toolbar3.5342.93
AccessibleWP /wp-admin/admin.php?page=accessible-wp3.5328.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AccessibleWP Toolbar - WordPress Accessibility Toollbar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,321 ▲57919.15 ▲3.5027.37 ▲20.552.76 ▲0.49
Dashboard /wp-admin3,134 ▲2808.26 ▲2.11141.22 ▲5.56172.21 ▲12.15
Posts /wp-admin/edit.php2,974 ▲2805.08 ▲1.8480.78 ▲18.18156.09 ▲15.12
Add New Post /wp-admin/post-new.php1,708 ▲4016.31 ▼2.04373.05 ▼51.64207.40 ▲56.00
Media Library /wp-admin/upload.php1,759 ▲615.77 ▲0.31105.40 ▼34.48195.88 ▲9.14
Toolbar /wp-admin/admin.php?page=accessiblewp-toolbar4,6175.30126.34141.40
AccessibleWP /wp-admin/admin.php?page=accessible-wp1,3664.6772.66147.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessible-poetry/index.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-poetry/inc/assets.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-poetry/inc/route.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-poetry/inc/main-component.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/accessible-poetry/inc/panel.php:613

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=accessible-wp
    • > Network (severe)
    wp-content/plugins/accessible-wp-toolbar/assets/svg/accessible.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 248 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 252 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 256 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 407 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 411 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 447 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 451 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 546 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 551 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 556 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 86% 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:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

accessible-poetry/accessible-wp-toolbar.php 77% from 13 tests

The main file in "AccessibleWP Toolbar - WordPress Accessibility Toollbar" v. 4.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)
  • 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: Name the main plugin file the same as the plugin slug ("accessible-poetry.php" instead of "accessible-wp-toolbar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,852 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP78995798
JavaScript910968594
PO File2194201455
SVG3003
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin