Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.29MB] [CPU: ▼1.25ms] Passed 4 tests
A check of server-side resources used by Fix Alt Text
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 44.50 ▲3.07 |
Dashboard /wp-admin | 4.70 ▲1.40 | 53.90 ▲4.19 |
Posts /wp-admin/edit.php | 4.75 ▲1.40 | 53.54 ▼2.26 |
Add New Post /wp-admin/post-new.php | 7.24 ▲1.36 | 89.96 ▼10.00 |
Media Library /wp-admin/upload.php | 4.56 ▲1.34 | 43.65 ▲10.40 |
Fix Alt Text /wp-admin/tools.php?page=fix-alt-text | 4.62 | 42.17 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 88 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fixalttext_images |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Fix Alt Text
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.26 ▼1.03 | 1.60 ▼0.40 | 42.99 ▲0.26 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.19 | 97.07 ▼8.72 | 38.31 ▼5.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.13 ▲0.00 | 35.80 ▼4.84 | 33.89 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,550 ▲16 | 18.39 ▼4.88 | 601.46 ▼66.95 | 49.12 ▼5.12 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▼0.04 | 97.24 ▼17.50 | 42.99 ▼6.33 |
Fix Alt Text /wp-admin/tools.php?page=fix-alt-text | 1,167 | 5.42 | 59.95 | 57.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_fixalttext_images
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fix-alt-text/uninstall.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Dashboard: Initial scan is needed), #2 (Site Settings: Overwritten by network settings), #3 (Network Settings: Edit network settings and see scan status of all sites), #4 (Dashboard: Running full scan), #5 (Dashboard: Scan complete. Displaying issues and notifications), #6 (Alt Text: Found references involving alt text), #7 (Alt Text: Preview image and inline editing), #8 (Gutenberg Editor: Forcing Alt Text), #9 (Media Library: Forcing Alt Text)
fix-alt-text/fix-alt-text.php 92% from 13 tests
The principal PHP file in "Fix Alt Text" v. 1.6.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,783 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 2,835 | 3,436 | 6,309 |
CSS | 2 | 160 | 8 | 791 |
JavaScript | 8 | 295 | 297 | 682 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 33 | |
▷ Abstract classes | 13 | 39.39% |
▷ Concrete classes | 20 | 60.61% |
▷ Final classes | 13 | 65.00% |
Methods | 307 | |
▷ Static methods | 179 | 58.31% |
▷ Public methods | 254 | 82.74% |
▷ Protected methods | 43 | 14.01% |
▷ Private methods | 10 | 3.26% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 82 | |
▷ Global constants | 82 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 2.52MB with 1.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 537.37KB | 159.22KB | ▼ 70.37% |
screenshot-4.png | 111.12KB | 36.98KB | ▼ 66.72% |
screenshot-8.png | 980.78KB | 283.38KB | ▼ 71.11% |
screenshot-3.png | 129.05KB | 41.59KB | ▼ 67.77% |
screenshot-1.png | 126.29KB | 41.98KB | ▼ 66.76% |