Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.62MB] [CPU: ▼45.10ms] Passed 4 tests
This is a short check of server-side resources used by Attach Files Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.09 | 10.34 ▼36.03 |
Dashboard /wp-admin | 2.39 ▼0.91 | 17.56 ▼31.35 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 12.30 ▼33.36 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 11.00 ▼79.67 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 11.54 ▼22.79 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_widget_ex_attachments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Attach Files Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 14.63 ▲0.23 | 1.83 ▲0.20 | 44.23 ▲4.88 |
Dashboard /wp-admin | 2,353 ▲165 | 6.32 ▲0.26 | 136.19 ▲29.05 | 41.38 ▼3.20 |
Posts /wp-admin/edit.php | 2,270 ▲184 | 3.40 ▲1.39 | 49.39 ▲10.91 | 31.11 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.16 ▼0.10 | 686.69 ▲39.88 | 37.54 ▼17.64 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.29 ▲0.00 | 88.66 ▼6.84 | 42.49 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/attach-files-widget/WidgetExAttachments.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; WidgetExAttachments has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_widget_ex_attachments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/attach-files-widget/widgetattachments.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/attach-files-widget/WidgetExAttachments.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: admin, files, sidebar, enqueue media, upload...
attach-files-widget/widgetattachments.php 92% from 13 tests
The principal PHP file in "Attach Files Widget" v. 2.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("attach-files-widget.php" instead of "widgetattachments.php")
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
There were no executable files found in this plugin450 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 27 | 273 |
CSS | 2 | 7 | 0 | 74 |
JavaScript | 1 | 21 | 2 | 58 |
PO File | 1 | 13 | 15 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.29MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 35.54KB | 13.59KB | ▼ 61.77% |
assets/images/pdf.png | 2.91KB | 1.94KB | ▼ 33.36% |
assets/images/text.png | 1.76KB | 2.71KB | 0.00% |
assets/images/video.png | 2.79KB | 1.87KB | ▼ 33.06% |
assets/images/compressed.png | 3.40KB | 2.01KB | ▼ 41.03% |