Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.40ms] Passed 4 tests
An overview of server-side resources used by Specify Missing Image Dimensions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.73 ▼1.32 |
Dashboard /wp-admin | 3.36 ▲0.01 | 43.62 ▼15.83 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.78 ▼6.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.82 ▼9.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.51 ▲0.15 |
SMID /wp-admin/options-general.php?page=SMID-plugin | 3.25 | 31.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Specify Missing Image Dimensions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.11 ▼1.47 | 1.65 ▼0.05 | 38.62 ▼1.78 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.02 | 109.98 ▲0.19 | 41.79 ▲2.84 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.01 | 40.61 ▲6.08 | 35.00 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.22 ▼5.05 | 614.05 ▼25.42 | 49.56 ▼6.31 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▲0.00 | 92.13 ▼5.93 | 40.83 ▼2.87 |
SMID /wp-admin/options-general.php?page=SMID-plugin | 894 | 2.02 | 22.90 | 27.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/specify-missing-image-dimensions/admin/admin-settings.php:5
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: cls, images, image optimization, pagespeed, speed...
specify-missing-image-dimensions/specify-missing-image-dimensions.php Passed 13 tests
The primary PHP file in "Specify Missing Image Dimensions" version 1.0.2 is used by WordPress to initiate all plugin functionality
73 characters long description:
A plugin that helps to add missing width and height attributes to images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected291 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 141 | 12 | 291 |
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.37 |
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 | 12 | |
▷ Named functions | 12 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin