83% aurise-accessibility-checker

Code Review | AuRise Accessibility Checker

WordPress plugin AuRise Accessibility Checker scored83%from 54 tests.

About plugin

  • Plugin page: aurise-accessibil...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2023
  • Latest release: Mar 30, 2023
  • Number of updates: 4
  • Update frequency: every 10.7 days
  • Top authors: tessawatkinsllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /334 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.02ms] Passed 4 tests

Server-side resources used by AuRise Accessibility Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1447.22 ▲4.77
Dashboard /wp-admin3.46 ▲0.1651.60 ▲0.05
Posts /wp-admin/edit.php3.58 ▲0.2249.37 ▼2.29
Add New Post /wp-admin/post-new.php6.04 ▲0.1689.57 ▼8.48
Media Library /wp-admin/upload.php3.39 ▲0.1638.46 ▲2.65
Accessibility Checker /wp-admin/options-general.php?page=aurise-accessibility-checker3.3736.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for AuRise Accessibility Checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,130 ▲36914.46 ▲1.2636.82 ▲32.3146.29 ▲1.49
Dashboard /wp-admin2,202 ▲255.62 ▼0.0589.04 ▼0.9941.33 ▲0.70
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0334.46 ▼4.1237.58 ▲0.72
Add New Post /wp-admin/post-new.php1,539 ▲1123.33 ▲0.21659.48 ▼6.2153.34 ▼2.35
Media Library /wp-admin/upload.php1,407 ▲104.17 ▼0.0396.23 ▼5.5141.22 ▼6.54
Accessibility Checker /wp-admin/options-general.php?page=aurise-accessibility-checker9522.0325.2460.91

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: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/aurise-accessibility-checker/templates/dashboard-support.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/aurise-accessibility-checker/templates/dashboard-admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

aurise-accessibility-checker/aurise-accessibility-checker.php 85% from 13 tests

The primary PHP file in "AuRise Accessibility Checker" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "5.8")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "5.6.20")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,543 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS216350851
PHP759359614
JavaScript227078

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity26.33
▷ Minimum class complexity14.00
▷ Maximum class complexity48.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods730.43%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/admin-logo.png4.40KB4.70KB0.00%
assets/images/kofi-cup.png4.17KB4.42KB0.00%