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
Installer ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼324.89ms] Passed 4 tests
A check of server-side resources used by Accessibility
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 55.33 ▲2.58 |
Dashboard /wp-admin | 3.14 ▼0.27 | 18.08 ▼14.40 |
Posts /wp-admin/edit.php | 3.14 ▼0.50 | 18.41 ▼19.05 |
Add New Post /wp-admin/post-new.php | 3.14 ▼3.83 | 17.49 ▼1,260.39 |
Media Library /wp-admin/upload.php | 3.14 ▼0.15 | 18.47 ▼5.72 |
Accessibility /wp-admin/admin.php?page=oc-accessibility-admin | 3.14 | 18.73 |
Attachments alt /wp-admin/admin.php?page=oc-accessibility-media | 3.14 | 17.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Accessibility
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲90 | 15.94 ▲0.30 | 6.31 ▲0.63 | 2.93 ▲0.62 |
Dashboard /wp-admin | 2,928 ▲77 | 6.16 ▼0.09 | 118.22 ▼20.50 | 158.51 ▼2.74 |
Posts /wp-admin/edit.php | 2,724 ▲39 | 3.25 ▼0.00 | 63.83 ▼5.02 | 141.18 ▼4.62 |
Add New Post /wp-admin/post-new.php | 1,776 ▲3 | 21.03 ▼0.69 | 445.88 ▼20.63 | 155.87 ▼2.42 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.48 ▼0.06 | 150.11 ▲12.37 | 189.65 ▲2.53 |
Accessibility /wp-admin/admin.php?page=oc-accessibility-admin | 1,106 | 2.38 | 55.54 | 176.62 |
Attachments alt /wp-admin/admin.php?page=oc-accessibility-media | 1,143 | 2.42 | 55.44 | 114.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=oc-accessibility-media
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessibility/includes/accessibility-attachments-alt.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessibility/includes/accessibility-settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
accessibility/accessibility.php Passed 13 tests
This is the main PHP file of "Accessibility" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
Accessibility Utility Widget - A high quality solution for making your WordPress website accessible ready.
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
Good job! No executable or dangerous file extensions detected591 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 72 | 62 | 395 |
CSS | 1 | 3 | 5 | 109 |
PO File | 1 | 30 | 33 | 87 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 6.00KB | 3.20KB | ▼ 46.64% |
assets/images/text_logo.png | 6.31KB | 3.01KB | ▼ 52.30% |