Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.99ms] Passed 4 tests
A check of server-side resources used by Multiple Featured Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.35 ▲0.71 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.13 ▼1.10 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.61 ▼3.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.10 ▼8.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.15 ▼3.25 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_kdmfi_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
kdmfi_version |
can_compress_scripts |
Browser metrics Passed 4 tests
Multiple Featured Images: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.27 ▼1.10 | 1.80 ▼0.07 | 41.18 ▼1.05 |
Dashboard /wp-admin | 2,208 ▲23 | 5.89 ▲0.02 | 108.92 ▲2.73 | 38.96 ▼2.94 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.05 ▲0.02 | 38.98 ▼0.66 | 33.40 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.24 ▲5.51 | 666.02 ▼19.73 | 51.78 ▼4.55 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.21 ▼0.00 | 94.02 ▼2.34 | 40.84 ▼6.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_kdmfi_widget
- theysaidso_admin_options
- kdmfi_version
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multiple-featured-images/Model/Kdmfi_Widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Admin meta box with multiple featured images.), #2 (Media uploader.), #3 (Multiple Featured Images Widget)
multiple-featured-images/multiple-featured-images.php Passed 13 tests
This is the main PHP file of "Multiple Featured Images" version 0.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
108 characters long description:
Enables multiple featured images for all post types. Comes with a widget for displaying the featured images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected557 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 161 | 228 | 383 |
JavaScript | 2 | 29 | 11 | 117 |
PO File | 2 | 10 | 14 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.70% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 17.21KB | 9.46KB | ▼ 45.05% |
screenshot-2.png | 28.82KB | 14.16KB | ▼ 50.85% |
screenshot-3.png | 8.99KB | 5.19KB | ▼ 42.28% |