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.09MB] [CPU: ▲1.21ms] Passed 4 tests
Analyzing server-side resources used by Auto Update Image Attributes From Filename
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.13 ▲0.08 |
Dashboard /wp-admin | 3.39 ▲0.09 | 52.09 ▲4.10 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.11 ▲3.85 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 96.76 ▼3.19 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.96 ▲6.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
auiaff-remove-numbers |
auiaff-remove-spaces |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
auiaff-enable-auto-update-attributes |
auiaff-remove-characters |
Browser metrics Passed 4 tests
A check of browser resources used by Auto Update Image Attributes From Filename
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲106 | 13.39 ▼0.98 | 7.61 ▲5.86 | 45.01 ▲2.35 |
Dashboard /wp-admin | 2,218 ▲38 | 5.65 ▲0.00 | 91.47 ▼0.51 | 43.47 ▲0.57 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.98 ▼0.01 | 40.09 ▲1.26 | 38.10 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 18.33 ▲0.38 | 671.64 ▲11.71 | 70.86 ▼2.43 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.12 ▼0.12 | 111.05 ▲8.01 | 46.72 ▲2.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- auiaff-enable-auto-update-attributes
- theysaidso_admin_options
- auiaff-remove-spaces
- auiaff-remove-characters
- db_upgraded
- auiaff-remove-numbers
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: image title, image attributes, image description, image alt, image caption
auto-update-image-attributes-from-filename/auto-update-image-attributes-from-filename.php 85% from 13 tests
The principal PHP file in "Auto Update Image Attributes From Filename" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "6.2.2")
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
No dangerous file extensions were detected353 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 131 | 573 | 347 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected