Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/attach-embeds/public/class-attach-embeds-public.php+77
Undefined variable: attach_embeds
Server metrics [RAM: ▼1.82MB] [CPU: ▼57.66ms] Passed 4 tests
A check of server-side resources used by Attach Embeds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.99 ▼32.76 |
Dashboard /wp-admin | 2.20 ▼1.15 | 6.79 ▼55.13 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 7.51 ▼40.42 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.22 ▼102.34 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 7.06 ▼26.34 |
Preview Embed /wp-admin/admin.php?page=attach_embeds_preview | 2.20 | 6.32 |
Setup /wp-admin/admin.php?page=attach_embeds_settings | 2.20 | 7.31 |
Reactions Embed /wp-admin/admin.php?page=attach_embeds_reactions | 2.20 | 6.66 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 10 new options
New WordPress options |
---|
reaction_default_css |
theysaidso_admin_options |
enable_reactions_first_time |
enable_preview_first_time |
widget_theysaidso_widget |
widget_recent-comments |
preview_default_css |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Attach Embeds
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲81 | 14.34 ▼0.40 | 2.01 ▲0.06 | 42.08 ▲6.47 |
Dashboard /wp-admin | 2,226 ▲48 | 5.55 ▼0.14 | 92.86 ▼23.78 | 70.97 ▲32.50 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.01 ▼0.01 | 39.87 ▼0.64 | 33.98 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.03 ▲0.00 | 672.58 ▲51.05 | 56.08 ▲7.98 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.14 ▼0.07 | 99.96 ▲4.44 | 80.39 ▲37.18 |
Preview Embed /wp-admin/admin.php?page=attach_embeds_preview | 876 | 2.05 | 26.72 | 31.60 |
Setup /wp-admin/admin.php?page=attach_embeds_settings | 907 | 2.31 | 23.15 | 26.80 |
Reactions Embed /wp-admin/admin.php?page=attach_embeds_reactions | 885 | 2.05 | 24.12 | 27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/attach-embeds/public/class-attach-embeds-public.php+77
Undefined variable: attach_embeds
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-comments
- widget_recent-posts
- enable_preview_first_time
- preview_default_css
- can_compress_scripts
- db_upgraded
- reaction_default_css
- theysaidso_admin_options
- enable_reactions_first_time
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=attach_embeds_reactions
- > Notice in wp-content/plugins/attach-embeds/public/class-attach-embeds-public.php+77
Undefined variable: attach_embeds
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/attach-embeds/public/partials/attach-embeds-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/attach-embeds/admin/partials/attach-embeds-admin-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/attach-embeds/admin/partials/attach-embeds-reactions-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/attach-embeds/admin/partials/attach-embeds-preview-display.php:17
- > PHP Fatal error
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 83% from 29 tests
readme.txt 81% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (screenshot-ui-reactions.png), #2 (screenshot-admin-setup.png), #3 (screenshot-admin-reactions.png)
- Screenshots: Add descriptions for screenshots #0, #0, #0 in attach-embeds/assets to your readme.txt
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
attach-embeds/attach-embeds.php 85% from 13 tests
"Attach Embeds" version 1.5.1614271328-16142...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.5.1614271328-16142...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin947 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 426 | 525 | 589 |
PO File | 3 | 54 | 72 | 245 |
CSS | 2 | 0 | 8 | 65 |
JavaScript | 2 | 11 | 63 | 29 |
SVG | 1 | 2 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 42 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.64% |
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
7 PNG files occupy 0.29MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 9.78KB | 4.37KB | ▼ 55.33% |
assets/icon-128x128.png | 1.87KB | 1.37KB | ▼ 26.84% |
assets/screenshot-admin-reactions.png | 77.19KB | 22.64KB | ▼ 70.67% |
assets/banner-1544x500.png | 23.25KB | 9.26KB | ▼ 60.17% |
assets/screenshot-admin-setup.png | 81.28KB | 25.15KB | ▼ 69.05% |