Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼296.67ms] Passed 4 tests
A check of server-side resources used by WCAG Validator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 51.43 ▲0.02 |
Dashboard /wp-admin | 3.43 ▲0.03 | 32.37 ▼0.03 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.64 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.28 ▼1,186.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 24.57 ▲0.11 |
WCAG Validator /wp-admin/tools.php?page=wcag-validator | 3.28 | 21.52 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WCAG Validator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.89 ▼0.11 | 5.94 ▼1.42 | 2.33 ▼0.65 |
Dashboard /wp-admin | 2,897 ▲46 | 6.08 ▼0.29 | 113.90 ▼20.75 | 158.20 ▼3.86 |
Posts /wp-admin/edit.php | 2,704 ▲13 | 3.24 ▲0.01 | 63.30 ▼4.70 | 136.19 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,692 ▲31 | 17.48 ▲1.42 | 438.24 ▲14.49 | 172.32 ▲17.32 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.53 ▲0.09 | 140.79 ▼15.35 | 189.25 ▲2.56 |
WCAG Validator /wp-admin/tools.php?page=wcag-validator | 992 | 2.38 | 51.59 | 99.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcag-validator/wcag-validator.php:435
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: validator, wcag, validate, wcag 20, wcag validator...
wcag-validator/wcag-validator.php Passed 13 tests
The main file in "WCAG Validator" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
118 characters long description:
Validate all posts with WCAG standard. Plugin generate a new report after saving post. You can also validate all post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected354 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 33 | 354 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 222.04KB | 69.86KB | ▼ 68.54% |
screenshot-1.png | 55.09KB | 19.01KB | ▼ 65.49% |