10% inaccessibility-checker

Code Review | Inaccessibility Checker

WordPress plugin Inaccessibility Checker scored 10% from 54 tests.

About plugin

  • Plugin page: inaccessibility-c...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.7.0
  • WordPress version: 6.3.1
  • First release: Aug 5, 2013
  • Latest release: Dec 10, 2016
  • Number of updates: 6
  • Update frequency: every 203.8 days
  • Top authors: Vhati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,434 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/inaccessibility-checker/inaccessibility-checker.php+153
    Use of undefined constant Inaccessibility_Checker - assumed 'Inaccessibility_Checker' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.12ms] Passed 4 tests

An overview of server-side resources used by Inaccessibility Checker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.48 ▼40.43
Dashboard /wp-admin2.09 ▼1.215.27 ▼41.07
Posts /wp-admin/edit.php2.09 ▼1.275.55 ▼43.97
Add New Post /wp-admin/post-new.php2.09 ▼3.805.85 ▼91.02
Media Library /wp-admin/upload.php2.09 ▼1.145.25 ▼28.45

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Inaccessibility Checker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.051.62 ▼0.4241.08 ▼2.45
Dashboard /wp-admin2,203 ▲125.83 ▲0.92104.21 ▼1.9837.82 ▼4.86
Posts /wp-admin/edit.php2,089 ▲32.00 ▲0.0039.87 ▼0.9335.32 ▼2.63
Add New Post /wp-admin/post-new.php1,533 ▼023.52 ▲0.31684.50 ▲2.5851.14 ▼6.32
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0694.66 ▼13.3441.02 ▼4.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/inaccessibility-checker/inaccessibility-checker.php+153
    Use of undefined constant Inaccessibility_Checker - assumed 'Inaccessibility_Checker' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 your attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

inaccessibility-checker/inaccessibility-checker.php 92% from 13 tests

"Inaccessibility Checker" version 0.0.3'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:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1323786
CSS111230

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin