Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.69MB] [CPU: ▼277.84ms] Passed 4 tests
This is a short check of server-side resources used by Accessibility Statement
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.02 ▲3.51 | 75.58 ▲24.81 |
Dashboard /wp-admin | 7.16 ▲3.76 | 63.01 ▲21.11 |
Posts /wp-admin/edit.php | 7.39 ▲3.75 | 63.67 ▲27.01 |
Add New Post /wp-admin/post-new.php | 10.76 ▲3.76 | 122.31 ▼1,178.33 |
Media Library /wp-admin/upload.php | 7.13 ▲3.83 | 45.44 ▲21.04 |
A11y statement settings /wp-admin/options-general.php?page=a11y-statement-settings | 7.02 | 42.50 |
Server storage [IO: ▲9.00MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 260 new files
Database: no new tables, 3 new options
New WordPress options |
---|
a11y_statement_options |
a11yStatement_post_id |
acf_version |
Browser metrics Passed 4 tests
A check of browser resources used by Accessibility Statement
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲20 | 15.86 ▲0.17 | 5.95 ▼0.38 | 2.05 ▼1.06 |
Dashboard /wp-admin | 2,899 ▲45 | 6.14 ▲0.02 | 125.48 ▼13.09 | 160.07 ▼0.27 |
Posts /wp-admin/edit.php | 2,695 ▲1 | 3.23 ▼0.01 | 64.11 ▲1.07 | 144.81 ▲2.81 |
Add New Post /wp-admin/post-new.php | 2,551 ▲890 | 23.72 ▲7.60 | 587.24 ▲179.20 | 163.13 ▲7.23 |
Media Library /wp-admin/upload.php | 2,360 ▲662 | 10.68 ▲5.11 | 224.45 ▲81.87 | 186.60 ▲1.69 |
A11y statement settings /wp-admin/options-general.php?page=a11y-statement-settings | 1,002 | 2.41 | 56.25 | 126.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- acf_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/accessibility-statement/includes/acf/includes/fields/class-acf-field-separator.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accessibility-statement/includes/acf/includes/acf-input-functions.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/accessibility-statement/includes/acf/includes/admin/views/html-location-group.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/accessibility-statement/includes/acf/includes/admin/views/field-group-field.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/accessibility-statement/includes/acf/includes/fields/class-acf-field-date_picker.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/accessibility-statement/includes/acf/includes/fields/class-acf-field-output.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/accessibility-statement/includes/acf/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_render_field_wrap() in wp-content/plugins/accessibility-statement/includes/acf/includes/admin/views/field-group-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessibility-statement/includes/acf/includes/forms/form-taxonomy.php:36
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/accessibility-statement/includes/acf/includes/fields/class-acf-field-file.php:5
- > PHP Fatal error
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 uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
accessibility-statement/accessibility-statement.php 92% from 13 tests
The entry point to "Accessibility Statement" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected114,458 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 32 | 24,383 | 41,449 | 50,303 |
JavaScript | 17 | 5,883 | 5,989 | 38,456 |
PHP | 139 | 8,546 | 18,225 | 19,601 |
CSS | 15 | 495 | 739 | 6,078 |
Markdown | 1 | 11 | 0 | 14 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 105 | |
▷ Abstract classes | 2 | 1.90% |
▷ Concrete classes | 103 | 98.10% |
▷ Final classes | 0 | 0.00% |
Methods | 791 | |
▷ Static methods | 1 | 0.13% |
▷ Public methods | 772 | 97.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 2.40% |
Functions | 439 | |
▷ Named functions | 436 | 99.32% |
▷ Anonymous functions | 3 | 0.68% |
Constants | 8 | |
▷ Global constants | 8 | 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
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
includes/acf/assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |
includes/acf/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
includes/acf/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |
includes/acf/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |