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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.00ms] Passed 4 tests
This is a short check of server-side resources used by Simple Accessibility
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.21 ▼4.15 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.25 ▼8.36 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.71 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.06 | 99.18 ▼6.72 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 40.07 ▲9.13 |
Simple Accessibility /wp-admin/options-general.php?page=simple-accessibility | 3.27 | 34.24 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
webmv_sa_plugin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_simple_accessibility_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Accessibility
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲123 | 13.45 ▼1.10 | 9.03 ▲6.88 | 43.57 ▲1.34 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▼0.05 | 94.83 ▼10.99 | 43.07 ▼4.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.01 | 41.53 ▼1.29 | 38.08 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,531 ▲6 | 23.35 ▲0.12 | 690.74 ▲58.03 | 53.68 ▲1.32 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.21 ▼0.00 | 106.04 ▲5.76 | 46.49 ▲3.27 |
Simple Accessibility /wp-admin/options-general.php?page=simple-accessibility | 850 | 1.99 | 25.75 | 30.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_simple_accessibility_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-accessibility/class/Simple_Accessibility.php
- > /wp-content/plugins/simple-accessibility/templates/options.php
- > /wp-content/plugins/simple-accessibility/class/Simple_Accessibility_Widget.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-accessibility/simple-accessibility.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
- Tags: You are using too many tags: 13 tag instead of maximum 10
simple-accessibility/simple-accessibility.php Passed 13 tests
"Simple Accessibility" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Make your website accessibility with just a few clicks.
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
There were no executable files found in this plugin3,038 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 8 | 25 | 2,044 |
SVG | 1 | 0 | 0 | 640 |
PHP | 6 | 40 | 92 | 219 |
JavaScript | 1 | 2 | 25 | 75 |
PO File | 1 | 20 | 23 | 60 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/contrast.png | 0.87KB | 1.03KB | 0.00% |
img/zoom_in.png | 0.89KB | 0.95KB | 0.00% |
img/zoom_out.png | 0.82KB | 0.92KB | 0.00% |
img/reset.png | 0.86KB | 0.99KB | 0.00% |
img/sw.png | 1.11KB | 0.96KB | ▼ 13.43% |