Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.56ms] Passed 4 tests
Analyzing server-side resources used by Simple Accessibility Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 46.42 ▲5.03 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.53 ▼5.52 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.14 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.41 ▼14.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.90 ▲0.37 |
YYDevelopment Accessibility /wp-admin/options-general.php?page=yydev-accessibility | 3.30 | 37.21 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
yydev_accessibility_timestamp |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
yydev_accessibility_data |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Accessibility Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.34 ▼1.28 | 8.00 ▲6.33 | 39.41 ▼5.10 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▲0.11 | 82.80 ▼21.11 | 38.07 ▼5.41 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.02 | 35.99 ▲0.64 | 38.44 ▲6.48 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.59 ▲0.57 | 650.10 ▼35.02 | 58.83 ▲3.40 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.09 | 97.82 ▼10.15 | 41.31 ▼5.57 |
YYDevelopment Accessibility /wp-admin/options-general.php?page=yydev-accessibility | 1,425 | 3.11 | 40.92 | 67.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- yydev_accessibility_timestamp
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- yydev_accessibility_data
- widget_recent-posts
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #2 is required in yydevelopment-accessibility/assets to your readme.txt
- Requires at least: Invalid plugin version format
yydevelopment-accessibility/index.php 92% from 13 tests
The main PHP script in "Simple Accessibility Button" version 2.1.6 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("yydevelopment-accessibility.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin1,211 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 410 | 216 | 959 |
JavaScript | 1 | 129 | 91 | 192 |
PO File | 2 | 15 | 16 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 8.78KB | 3.96KB | ▼ 54.86% |
images/accessibility-icons.png | 0.37KB | 0.38KB | 0.00% |
images/accessibility-icon.png | 0.37KB | 0.38KB | 0.00% |