87% accessibility-by-audioeye

Code Review | Accessibility by Audioeye

WordPress plugin Accessibility by Audioeye scored 87% from 54 tests.

About plugin

  • Plugin page: accessibility-by-...
  • Plugin version: 1.0.46
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 5.9.2
  • First release: Aug 3, 2021
  • Latest release: Feb 9, 2022
  • Number of updates: 12
  • Update frequency: every 15.9 days
  • Top authors: netopsae (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active / 1,824 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼291.78ms] Passed 4 tests

A check of server-side resources used by Accessibility by Audioeye
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1255.46 ▲2.67
Dashboard /wp-admin3.47 ▲0.0632.17 ▼0.64
Posts /wp-admin/edit.php3.69 ▲0.0536.99 ▲0.80
Add New Post /wp-admin/post-new.php6.94 ▼0.0396.16 ▼1,164.67
Media Library /wp-admin/upload.php3.34 ▲0.0423.93 ▼2.62

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessibility by Audioeye
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,822 ▲6815.99 ▼0.135.89 ▼0.962.42 ▼0.04
Dashboard /wp-admin2,920 ▲696.17 ▲0.03117.41 ▼19.96156.69 ▼3.91
Posts /wp-admin/edit.php2,716 ▲283.27 ▲0.0461.90 ▼1.54144.72 ▲10.26
Add New Post /wp-admin/post-new.php1,681 ▲6316.44 ▼3.07444.60 ▲48.53154.67 ▼4.72
Media Library /wp-admin/upload.php1,725 ▲275.55 ▲0.04152.71 ▲20.46183.19 ▼9.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessibility-by-audioeye/public/partials/audioeye-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/accessibility-by-audioeye/admin/partials/audioeye-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === accessibility-by-audioeye === )
  • Donate link: Invalid url: ""
The official readme.txt might help

accessibility-by-audioeye/audioeye.php 77% from 13 tests

The main PHP file in "Accessibility by Audioeye" ver. 1.0.46 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("accessibility-by-audioeye.php" instead of "audioeye.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)

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
Everything looks great! No dangerous files found in this plugin811 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12154508463
CSS2638297
JavaScript2162751

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin