72% accessible-poetry

Code Review | AccessibleWP - Accessibility Toolbar

WordPress plugin AccessibleWP - Accessibility Toolbar scored72%from 54 tests.

About plugin

  • Plugin page: accessible-poetry
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: Nov 3, 2022
  • Number of updates: 141
  • Update frequency: every 19.5 days
  • Top authors: digisphere (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

8,000+ active /86,764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▲0.92ms] Passed 4 tests

Server-side resources used by AccessibleWP - Accessibility Toolbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2857.66 ▲13.98
Dashboard /wp-admin3.58 ▲0.2851.95 ▼3.49
Posts /wp-admin/edit.php3.69 ▲0.3453.27 ▲4.57
Add New Post /wp-admin/post-new.php6.34 ▲0.4598.91 ▲2.47
Media Library /wp-admin/upload.php3.50 ▲0.2738.07 ▲0.13
AccessibleWP /wp-admin/admin.php?page=accessible-wp3.4733.42
Toolbar /wp-admin/admin.php?page=accessiblewp-toolbar3.4848.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for AccessibleWP - Accessibility Toolbar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,209 ▲46313.86 ▼0.729.58 ▲7.7337.66 ▼7.17
Dashboard /wp-admin2,295 ▲1105.13 ▼0.73112.63 ▲8.7442.91 ▲0.77
Posts /wp-admin/edit.php2,183 ▲942.33 ▲0.3039.66 ▲3.7136.24 ▼0.52
Add New Post /wp-admin/post-new.php1,549 ▲1617.91 ▼5.22700.73 ▲13.7137.18 ▼21.76
Media Library /wp-admin/upload.php1,475 ▲904.39 ▲0.11102.22 ▼13.9245.53 ▼1.28
AccessibleWP /wp-admin/admin.php?page=accessible-wp9871.9629.8959.68
Toolbar /wp-admin/admin.php?page=accessiblewp-toolbar2,7133.0166.0933.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% 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 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessible-poetry/index.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-poetry/inc/assets.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accessible-poetry/inc/body-classes.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accessible-poetry/inc/styles.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-poetry/inc/toolbar.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-poetry/inc/panel.php:35

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=accessiblewp-toolbar
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=accessiblewp-toolbar 242 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 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 254 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 439 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 445 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 624 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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in accessible-poetry/assets to your readme.txt
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

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

The entry point to "AccessibleWP - Accessibility Toolbar" version 5.1.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,846 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7139961,145
CSS25137969
JavaScript210555504
PO File19497228

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin