78% dj-accessibility

Code Review | DJ-Accessibility - Accessibility Plugin

WordPress plugin DJ-Accessibility - Accessibility Plugin scored78%from 54 tests.

About plugin

  • Plugin page: dj-accessibility
  • Plugin version: 1.05
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Dec 15, 2022
  • Number of updates: 4
  • Update frequency: every 75.8 days
  • Top authors: pixelemu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /1,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.62MB] [CPU: ▲1.69ms] Passed 4 tests

A check of server-side resources used by DJ-Accessibility - Accessibility Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1139.08 ▲3.60
Dashboard /wp-admin4.10 ▲0.7949.61 ▲4.47
Posts /wp-admin/edit.php4.18 ▲0.8248.46 ▲4.94
Add New Post /wp-admin/post-new.php6.68 ▲0.7986.04 ▼5.59
Media Library /wp-admin/upload.php4.02 ▲0.7938.58 ▲4.28

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 405 new files
Database: no new tables, 6 new options
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

This is an overview of browser requirements for DJ-Accessibility - Accessibility Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,342 ▲58114.33 ▼0.315.22 ▲3.66105.03 ▲63.91
Dashboard /wp-admin2,216 ▲395.57 ▲0.0284.31 ▼1.0340.04 ▼2.03
Posts /wp-admin/edit.php2,127 ▲272.06 ▲0.0735.77 ▲0.3634.26 ▲1.73
Add New Post /wp-admin/post-new.php1,546 ▲2023.41 ▲0.20687.88 ▲19.5254.60 ▲0.79
Media Library /wp-admin/upload.php1,424 ▲244.31 ▲0.17100.14 ▼3.0740.79 ▼2.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dj-accessibility/dj-accessibility-light.php
  • 44× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/dj-accessibility/includes/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/dj-accessibility/includes/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt might help

dj-accessibility/dj-accessibility-light.php 92% from 13 tests

"DJ-Accessibility - Accessibility Plugin" version 1.05's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("dj-accessibility.php" instead of "dj-accessibility-light.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
Everything looks great! No dangerous files found in this plugin57,987 lines of code in 246 files:
LanguageFilesBlank linesComment linesLines of code
PO File12814,87919,17433,618
PHP642,2636,4218,339
CSS173741,2776,836
JSON3504,481
Sass21360432,390
JavaScript94075941,565
Markdown32440755
SVG1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity18.85
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes71
▷ Abstract classes912.68%
▷ Concrete classes6287.32%
▷ Final classes00.00%
Methods555
▷ Static methods9917.84%
▷ Public methods46383.42%
▷ Protected methods8916.04%
▷ Private methods30.54%
Functions37
▷ Named functions3697.30%
▷ Anonymous functions12.70%
Constants14
▷ Global constants857.14%
▷ Class constants642.86%
▷ Public constants6100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
includes/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
includes/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%