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.06MB] [CPU: ▼5.27ms] Passed 4 tests
Analyzing server-side resources used by Insert Image Alt Text
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.75 ▼3.92 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.71 ▼0.12 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.25 ▼2.14 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.41 ▼14.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.37 ▲0.47 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Insert Image Alt Text
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 13.88 ▼0.74 | 8.39 ▲6.73 | 43.73 ▼3.34 |
Dashboard /wp-admin | 2,225 ▲37 | 4.88 ▲0.04 | 103.85 ▼4.54 | 41.35 ▼2.17 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.03 | 35.96 ▼6.37 | 31.69 ▼4.09 |
Add New Post /wp-admin/post-new.php | 1,550 ▲14 | 23.27 ▲0.03 | 649.49 ▲2.92 | 52.17 ▼6.65 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.21 ▲0.03 | 97.31 ▲0.93 | 43.59 ▲1.73 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/insert-image-alt-text/public/partials/insert-image-alt-text-public-display.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/insert-image-alt-text/admin/partials/insert-image-alt-text-admin-function.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/insert-image-alt-text/admin/partials/insert-image-alt-text-admin-function.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/insert-image-alt-text/admin/partials/insert-image-alt-text-admin-display.php:22
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/insert-image-alt-text/admin/partials/insert-image-alt-text-admin-display.php on line 20
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/insert-image-alt-text/admin/partials/insert-image-alt-text-admin-display.php on line 21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/insert-image-alt-text/admin/partials/insert-image-alt-text-admin-function.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== insert-image-alt-text ===
)
insert-image-alt-text/insert-image-alt-text.php Passed 13 tests
The main PHP script in "Insert Image Alt Text" version 1.0.0 is automatically included on every request by WordPress
137 characters long description:
Tired of inserting alternative text in all images in your WordPress media? Insert Image Alt Text will automatically add alt text on them.
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
There were no executable files found in this plugin352 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 128 | 558 | 289 |
CSS | 2 | 7 | 8 | 38 |
JavaScript | 2 | 8 | 54 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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