83% editoria11y-accessibility-checker

Code Review | Editoria11y Accessibility Checker

WordPress plugin Editoria11y Accessibility Checker scored83%from 54 tests.

About plugin

  • Plugin page: editoria11y-acces...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2023
  • Latest release: Aug 15, 2023
  • Number of updates: 14
  • Update frequency: every 13.9 days
  • Top authors: editoria11y (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,228 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.87ms] Passed 4 tests

Server-side resources used by Editoria11y Accessibility Checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0451.54 ▲12.98
Dashboard /wp-admin3.35 ▲0.0447.94 ▼8.37
Posts /wp-admin/edit.php3.46 ▲0.1053.68 ▲1.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.28 ▼3.61
Media Library /wp-admin/upload.php3.27 ▲0.0443.10 ▲7.11
Editoria11y /wp-admin/options-general.php?page=ed11y3.2334.23

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 3 new tables, 6 new options
New tables
wp_ed11y_results
wp_ed11y_dismissals
wp_ed11y_urls
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Editoria11y Accessibility Checker: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲27415.24 ▲0.8837.26 ▲35.3652.56 ▲7.73
Dashboard /wp-admin2,222 ▲334.87 ▼0.07109.93 ▼0.2941.61 ▼4.96
Posts /wp-admin/edit.php2,108 ▲191.96 ▼0.0843.62 ▲6.2535.67 ▲1.67
Add New Post /wp-admin/post-new.php1,542 ▲918.21 ▼4.83604.88 ▼63.1858.06 ▼2.03
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.04104.82 ▼5.8841.85 ▼7.12
Editoria11y /wp-admin/options-general.php?page=ed11y1,1802.0326.2957.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editoria11y-accessibility-checker/src/admin.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/editoria11y-accessibility-checker/src/functions.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/editoria11y-accessibility-checker/src/controller/class-editoria11y-api-dismissals.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/editoria11y-accessibility-checker/src/controller/class-editoria11y-api-results.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: seo, quality assurance, accessibility checker, automated testing

editoria11y-accessibility-checker/editoria11y.php 69% from 13 tests

The primary PHP file in "Editoria11y Accessibility Checker" version 1.0.12 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editoria11y-accessibility-checker.php" instead of "editoria11y.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,258 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41431171,645
PHP62134071,389
CSS2371224

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods520.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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 files were detected