89% enable-accessibility

Code Review | Enable Accessibility

WordPress plugin Enable Accessibility scored 89% from 54 tests.

About plugin

  • Plugin page: enable-accessibility
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2017
  • Latest release: May 3, 2023
  • Number of updates: 7
  • Update frequency: every 319.0 days
  • Top authors: upress (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active / 61,633 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Enable Accessibility
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.69 ▼0.86
Dashboard /wp-admin3.37 ▲0.0649.74 ▼1.95
Posts /wp-admin/edit.php3.48 ▲0.1247.39 ▼4.29
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.84 ▼13.76
Media Library /wp-admin/upload.php3.29 ▲0.0639.51 ▲2.53
Attachments alt /wp-admin/admin.php?page=enable-accessibility-media3.3034.13
Enable Accessibility /wp-admin/admin.php?page=enable-accessibility-admin3.2635.60

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
enable-accessibility-data
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Enable Accessibility: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8713.64 ▼0.665.05 ▲3.4140.15 ▼2.64
Dashboard /wp-admin2,247 ▲564.88 ▼0.09114.72 ▲11.9942.12 ▲1.43
Posts /wp-admin/edit.php2,137 ▲482.05 ▼0.0135.95 ▲1.7436.87 ▲2.56
Add New Post /wp-admin/post-new.php1,556 ▲2223.32 ▲0.27666.35 ▼13.1160.57 ▲7.92
Media Library /wp-admin/upload.php1,427 ▲364.27 ▲0.10100.77 ▲7.4644.73 ▲0.89
Attachments alt /wp-admin/admin.php?page=enable-accessibility-media9092.0327.9937.07
Enable Accessibility /wp-admin/admin.php?page=enable-accessibility-admin8332.0825.1727.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • enable-accessibility-data

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 () image required
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Screenshots: Add a description for screenshot #0 in enable-accessibility/assets to your readme.txt
Please take inspiration from this readme.txt

enable-accessibility/enable-accessibility.php 92% from 13 tests

The main PHP file in "Enable Accessibility" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

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
There were no executable files found in this plugin721 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP47788507
CSS121109
PO File14468105

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.00
▷ Minimum class complexity3.00
▷ Maximum class complexity39.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1773.91%
▷ Protected methods00.00%
▷ Private methods626.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin