77% accessibility-by-audioeye

Code Review | Accessibility by Audioeye

WordPress plugin Accessibility by Audioeye scored77%from 54 tests.

About plugin

  • Plugin page: accessibility-by-...
  • Plugin version: 1.0.47
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: Aug 3, 2021
  • Latest release: Sep 19, 2022
  • Number of updates: 14
  • Update frequency: every 29.5 days
  • Top authors: netopsae (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /6,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.64ms] Passed 4 tests

Analyzing server-side resources used by Accessibility by Audioeye
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.06 ▲0.57
Dashboard /wp-admin3.35 ▲0.0546.92 ▼2.24
Posts /wp-admin/edit.php3.47 ▲0.1145.31 ▼1.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.97 ▼2.55
Media Library /wp-admin/upload.php3.28 ▲0.0534.46 ▼0.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Accessibility by Audioeye: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.60 ▼0.691.67 ▼0.0742.95 ▼5.49
Dashboard /wp-admin2,232 ▲444.88 ▼0.0497.87 ▼5.5739.04 ▼6.61
Posts /wp-admin/edit.php2,112 ▲262.03 ▲0.0234.91 ▼3.5932.76 ▼1.36
Add New Post /wp-admin/post-new.php1,543 ▲1018.29 ▼4.90610.26 ▼62.2056.41 ▼13.52
Media Library /wp-admin/upload.php1,411 ▲204.25 ▲0.1196.36 ▼5.1041.88 ▼3.39

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessibility-by-audioeye/public/partials/audioeye-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "www.audioeye.com"
  • Plugin Name: Please specify the plugin name on the first line ( === accessibility-by-audioeye === )
Please take inspiration from this readme.txt

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

The main PHP file in "Accessibility by Audioeye" ver. 1.0.47 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 174 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same 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

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
Good job! No executable or dangerous file extensions detected811 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12154495463
CSS2638297
JavaScript2162751

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected