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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.16ms] Passed 4 tests
A check of server-side resources used by Alt Text Magic - Generate descriptive alt text (alt attribute, alt tag) for accessibility and SEO optimization
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 45.85 ▲0.51 |
Dashboard /wp-admin | 3.45 ▲0.11 | 56.01 ▼15.10 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 55.17 ▲4.63 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 90.38 ▼10.67 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 44.89 ▲6.61 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 20 new options
New WordPress options |
---|
can_compress_scripts |
alt_text_magic_image_credit_limit |
alt_text_magic_images_missing_alt_text |
widget_recent-posts |
db_upgraded |
alt_text_magic_language |
alt_text_magic_batch_current_idx |
alt_text_magic_image_credit_count |
widget_theysaidso_widget |
alt_text_magic_monthly_image_count |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Alt Text Magic - Generate descriptive alt text (alt attribute, alt tag) for accessibility and SEO optimization
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.20 ▼0.38 | 1.69 ▼0.18 | 45.30 ▼0.12 |
Dashboard /wp-admin | 2,210 ▲30 | 5.69 ▼0.01 | 92.21 ▼9.39 | 66.99 ▲22.38 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.97 ▼0.04 | 37.81 ▼2.10 | 35.91 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.02 ▼0.29 | 747.15 ▲93.29 | 51.92 ▼8.58 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.19 ▲0.03 | 102.60 ▲2.36 | 78.99 ▲34.93 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alttextmagic/includes/dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alttextmagic/includes/library_updater.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alttextmagic/includes/account.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/alttextmagic/plugin.php:65
- > 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 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: alt text, machine learning, accessibility, ai, generator...
alttextmagic/plugin.php 62% from 13 tests
The main PHP file in "Alt Text Magic - Generate descriptive alt text (alt attribute, alt tag) for accessibility and SEO optimization" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.2" instead of "4.2.0")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alttextmagic.php" instead of "plugin.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,801 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 189 | 406 | 1,176 |
PHP | 5 | 105 | 258 | 1,057 |
CSS | 3 | 110 | 9 | 568 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 28 | |
▷ Named functions | 28 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/chicken-icon-gr.png | 2.42KB | 0.48KB | ▼ 80.11% |
assets/chicken-icon.png | 2.39KB | 0.56KB | ▼ 76.43% |
assets/Alt-Text-Magic-logo.png | 35.98KB | 19.27KB | ▼ 46.43% |