84% genesis-accessible

Code Review | Genesis Accessible

WordPress plugin Genesis Accessible scored84%from 54 tests.

About plugin

  • Plugin page: genesis-accessible
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: Jan 14, 2020
  • Number of updates: 38
  • Update frequency: every 54.4 days
  • Top authors: rianrietveld (84.21%)littler.chicken (18.42%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /14,410 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.00MB] [CPU: ▼2.99ms] Passed 4 tests

Analyzing server-side resources used by Genesis Accessible
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.09 ▲0.24
Dashboard /wp-admin3.31 ▲0.0044.03 ▼5.88
Posts /wp-admin/edit.php3.36 ▲0.0043.69 ▼0.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.28 ▼3.06
Media Library /wp-admin/upload.php3.23 ▲0.0032.14 ▼2.37

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Accessible
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.191.94 ▲0.2043.36 ▲4.33
Dashboard /wp-admin2,206 ▲214.81 ▼0.0999.09 ▼1.6139.36 ▼2.08
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0439.40 ▲3.4334.98 ▼0.33
Add New Post /wp-admin/post-new.php1,534 ▲2023.35 ▲5.86648.02 ▼38.1750.87 ▼6.83
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0197.84 ▼6.1542.23 ▼4.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-accessible/templates/404.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-accessible/templates/sitemap.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-accessible/includes/dropdown.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-accessible/includes/attributes.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-accessible/includes/widgets.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Admin_Boxes' not found in wp-content/plugins/genesis-accessible/admin/accessible-theme-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-accessible/includes/headings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-accessible/includes/skip-links.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-accessible/admin/admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-accessible/includes/forms.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: genesis, accessible, accessibility, wcag 20 aa, a11y...

genesis-accessible/genesis-accessible.php Passed 13 tests

The primary PHP file in "Genesis Accessible" version 1.4.0 is used by WordPress to initiate all plugin functionality
76 characters long description:
This plugin implements the accessibility features for the Genesis Framework.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,536 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File6252265745
PHP14210483701
CSS2142052
JavaScript2103338

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1252.17%
▷ Protected methods1147.83%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There are no PNG files in this plugin