Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.39ms] Passed 4 tests
A check of server-side resources used by Image Alt Text
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 44.15 ▲1.98 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.42 ▼1.54 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.75 ▼2.20 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 97.48 ▼3.81 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.93 ▲3.53 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Image Alt Text
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.28 ▼1.27 | 1.75 ▼0.02 | 43.93 ▲1.67 |
Dashboard /wp-admin | 2,246 ▲58 | 4.91 ▼0.00 | 109.69 ▲9.46 | 43.70 ▼7.55 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.06 ▲0.07 | 43.48 ▲7.06 | 37.09 ▲3.78 |
Add New Post /wp-admin/post-new.php | 1,564 ▲22 | 23.30 ▲4.81 | 661.28 ▲11.18 | 63.63 ▼4.30 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.21 ▼0.05 | 103.14 ▼0.92 | 47.34 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/image-alt-text/image-alt-text.php
- > /wp-content/plugins/image-alt-text/includes/iat-general.php
- > /wp-content/plugins/image-alt-text/includes/class-iat-list-table.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/image-alt-text/admin/iat-missing-alt-txt-media-list.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: image alt text, image alternative, image alt, image alternative text, alt text
image-alt-text/image-alt-text.php Passed 13 tests
The main PHP file in "Image Alt Text" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Image Alt Text plugin provides facilities to add missing alt text for all image media files.
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 detected1,363 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 83 | 46 | 589 |
JavaScript | 4 | 12 | 19 | 548 |
CSS | 3 | 43 | 10 | 226 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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 | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.17KB | 0.25KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/images/image-alt-text-logo.png | 16.08KB | 5.06KB | ▼ 68.51% |