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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.98ms] Passed 4 tests
Analyzing server-side resources used by Alt Attribute Audit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.67 ▼1.81 |
Dashboard /wp-admin | 3.36 ▲0.02 | 45.32 ▼17.07 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.22 ▼6.15 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.73 ▼6.90 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.51 ▲4.71 |
Alt Tags Audit /wp-admin/tools.php?page=edit_alt_tags | 3.23 | 30.06 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Alt Attribute Audit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.47 ▲0.10 | 1.85 ▲0.19 | 41.29 ▲2.16 |
Dashboard /wp-admin | 2,226 ▲41 | 5.87 ▲0.96 | 106.57 ▲3.74 | 38.78 ▼2.12 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▼0.03 | 41.05 ▲5.24 | 36.09 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.19 ▲5.71 | 662.06 ▲3.11 | 71.46 ▲20.63 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.25 ▲0.03 | 110.67 ▲11.12 | 48.27 ▲5.22 |
Alt Tags Audit /wp-admin/tools.php?page=edit_alt_tags | 813 | 2.21 | 28.79 | 22.83 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=edit_alt_tags
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Wcw_Alt_Tag_Audit_Admin::render_options_page() should not be called statically
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== alt-attribute-audit ===
)
alt-attribute-audit/wcw-alt-tag-audit.php 85% from 13 tests
The entry point to "Alt Attribute Audit" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("alt-attribute-audit.php" instead of "wcw-alt-tag-audit.php")
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
Everything looks great! No dangerous files found in this plugin565 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 151 | 414 | 220 |
Svelte | 2 | 34 | 0 | 198 |
CSS | 2 | 13 | 1 | 56 |
JavaScript | 3 | 11 | 16 | 55 |
JSON | 1 | 0 | 0 | 22 |
HTML | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
An short overview of 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.22 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 5 | 19.23% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.PNG | 24.11KB | 12.43KB | ▼ 48.44% |
assets/screenshot-1.PNG | 219.21KB | 82.54KB | ▼ 62.35% |
admin/app/public/favicon.png | 3.05KB | 1.47KB | ▼ 51.87% |