Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▲1.98ms] Passed 4 tests
Server-side resources used by Alt Text AI - Automatically generate image alt text for SEO and accessibility
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 38.33 ▼1.60 |
Dashboard /wp-admin | 3.74 ▲0.39 | 101.02 ▲38.52 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 52.45 ▲7.60 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 89.64 ▼4.44 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 36.94 ▲6.34 |
Sync Library /wp-admin/admin.php?page=atai-csv-import | 3.56 | 35.30 |
Settings /wp-admin/admin.php?page=atai | 3.66 | 39.15 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_atai_assets |
New WordPress options |
---|
can_compress_scripts |
atai_db_version |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Alt Text AI - Automatically generate image alt text for SEO and accessibility
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.09 ▼0.33 | 1.66 ▲0.02 | 41.28 ▼3.05 |
Dashboard /wp-admin | 2,229 ▲55 | 5.64 ▲0.08 | 97.64 ▼0.67 | 41.98 ▼4.62 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.04 ▲0.10 | 44.87 ▲9.26 | 35.73 ▲0.31 |
Add New Post /wp-admin/post-new.php | 6,283 ▲4,752 | 26.03 ▲3.21 | 1,022.33 ▲266.36 | 62.71 ▲7.73 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.23 ▼0.04 | 102.55 ▼1.33 | 41.89 ▲1.30 |
Sync Library /wp-admin/admin.php?page=atai-csv-import | 900 | 2.00 | 22.93 | 38.35 |
Settings /wp-admin/admin.php?page=atai | 1,819 | 2.01 | 24.80 | 35.55 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/alttext-ai/admin/partials/settings.php
- > /wp-content/plugins/alttext-ai/admin/partials/csv-import.php
- > /wp-content/plugins/alttext-ai/admin/partials/bulk-generate.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/alttext-ai/includes/class-atai-attachment.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/alttext-ai/includes/class-atai-attachment.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/alttext-ai/includes/class-atai-attachment.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: alternative text, alt text, accessibility, ai, optimize seo...
alttext-ai/atai.php 92% from 13 tests
This is the main PHP file of "Alt Text AI - Automatically generate image alt text for SEO and accessibility" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("alttext-ai.php" instead of "atai.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,996 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 494 | 1,319 | 2,551 |
JavaScript | 1 | 104 | 53 | 444 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 20 | 22.73% |
▷ Public methods | 81 | 92.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.95% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon-button-generate.png | 1.08KB | 1.25KB | 0.00% |