Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.11ms] Passed 4 tests
Server-side resources used by WP Attachments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.24 ▼1.37 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.45 ▲0.23 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 50.66 ▼3.58 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 100.70 ▼15.73 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.59 ▲1.27 |
WP Attachments /wp-admin/options-general.php?page=wpatt-option-page | 3.34 | 40.63 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
wpatt_option_localization |
widget_recent-posts |
wpa_ict |
wpatt_option_date_localization |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
wpa_template |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Attachments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.34 ▼0.38 | 2.21 ▲0.17 | 43.90 ▲0.16 |
Dashboard /wp-admin | 2,206 ▲26 | 5.63 ▲0.05 | 85.40 ▼11.24 | 39.39 ▼6.00 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.97 ▼0.02 | 41.33 ▼1.21 | 44.39 ▲7.22 |
Add New Post /wp-admin/post-new.php | 6,258 ▲4,723 | 20.86 ▲2.56 | 878.57 ▲241.78 | 76.61 ▲0.30 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.23 ▲0.02 | 96.91 ▼1.60 | 42.35 ▼1.54 |
WP Attachments /wp-admin/options-general.php?page=wpatt-option-page | 1,016 | 3.72 | 64.13 | 77.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 11 options
- wpa_template
- wpatt_option_date_localization
- wpa_ict
- wpatt_option_localization
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- wpa_version_number
- widget_theysaidso_widget
- theysaidso_admin_options
- ...
Smoke tests 50% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-attachments/inc/attach_unattach_reattach.php:53
- > PHP Notice
Undefined variable: url in wp-content/plugins/wp-attachments/inc/html/attachmentEditIframe.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-attachments/wp-attachments.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-attachments/inc/ij-post-attachments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-attachments/inc/html/attachmentEditIframe.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-attachments/inc/counter.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-attachments/inc/html/attachmentEditHead.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wpatt-option-page
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=wpatt-option-page
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: There are too many tags (25 tag instead of maximum 10)
wp-attachments/wp-attachments.php Passed 13 tests
The main PHP file in "WP Attachments" ver. 5.0.6 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Powerful solution to manage and show your WordPress media in posts and pages
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
Success! There were no dangerous files found in this plugin950 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 163 | 112 | 824 |
JavaScript | 1 | 24 | 64 | 82 |
CSS | 2 | 8 | 3 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 23 | |
▷ Named functions | 18 | 78.26% |
▷ Anonymous functions | 5 | 21.74% |
Constants | 3 | |
▷ Global constants | 3 | 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
45 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/0/document-excel.png | 0.66KB | 0.58KB | ▼ 11.31% |
styles/3/document-odt.png | 0.53KB | 0.66KB | 0.00% |
styles/2/document-word.png | 0.71KB | 0.60KB | ▼ 15.87% |
styles/4/document-image.png | 0.60KB | 0.61KB | 0.00% |
styles/1/document-word.png | 0.34KB | 0.29KB | ▼ 14.20% |