Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.04ms] Passed 4 tests
This is a short check of server-side resources used by Enlightened Images Alt Text Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.59 ▼0.64 |
Dashboard /wp-admin | 3.42 ▲0.08 | 59.25 ▼12.10 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.98 ▼4.95 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.24 ▲1.55 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.38 ▲4.57 |
Bulk Alt Text /wp-admin/upload.php?page=enlightenedimages | 3.31 | 33.31 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
elim_pro_plugin |
Browser metrics Passed 4 tests
Enlightened Images Alt Text Generator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.67 ▼0.64 | 2.01 ▼0.14 | 47.43 ▼6.81 |
Dashboard /wp-admin | 2,218 ▲30 | 5.36 ▲0.46 | 123.39 ▼5.07 | 41.00 ▼9.40 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.06 | 37.06 ▼10.72 | 35.96 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.18 ▲0.13 | 612.55 ▼101.71 | 58.14 ▼15.37 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▼0.02 | 94.43 ▼6.69 | 41.39 ▼1.52 |
Bulk Alt Text /wp-admin/upload.php?page=enlightenedimages | 896 | 2.70 | 50.91 | 47.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enlightenedimages/src/class-elim-plugin.php:18
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: image alt text, seo, accessibility, alt text
enlightenedimages/enlightened-images.php 92% from 13 tests
The main file in "Enlightened Images Alt Text Generator" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("enlightenedimages.php" instead of "enlightened-images.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin615 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 123 | 22 | 598 |
JSON | 1 | 0 | 0 | 15 |
CSS | 1 | 0 | 1 | 1 |
JavaScript | 1 | 0 | 2 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 1 | 4.17% |
▷ Private methods | 1 | 4.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected