Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/auto-attachments/admin/rebuild.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; aARebuild has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼51.04ms] Passed 4 tests
An overview of server-side resources used by Auto Attachments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 5.93 ▼38.66 |
Dashboard /wp-admin | 2.31 ▼0.99 | 7.86 ▼45.29 |
Posts /wp-admin/edit.php | 2.31 ▼1.04 | 7.33 ▼38.60 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.57 | 7.88 ▼81.61 |
Media Library /wp-admin/upload.php | 2.31 ▼0.91 | 6.85 ▼26.80 |
Regen. Thumbnails /wp-admin/admin.php?page=aa_regen_thumb | 2.31 | 9.14 |
Auto Attachments /wp-admin/admin.php?page=auto_attachments | 2.31 | 8.64 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 98 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
auto_attachments_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Auto Attachments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲35 | 14.35 ▼0.20 | 1.60 ▼0.21 | 38.52 ▼2.82 |
Dashboard /wp-admin | 2,227 ▲56 | 5.65 ▲0.07 | 89.27 ▼13.40 | 41.18 ▼2.28 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.99 ▼0.04 | 38.80 ▲4.90 | 36.75 ▲0.34 |
Add New Post /wp-admin/post-new.php | 6,583 ▲5,057 | 26.06 ▲2.46 | 829.41 ▲137.45 | 66.28 ▲9.87 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.17 ▼0.05 | 93.27 ▼13.46 | 42.72 ▼6.75 |
Regen. Thumbnails /wp-admin/admin.php?page=aa_regen_thumb | 839 | 1.69 | 25.12 | 27.61 |
Auto Attachments /wp-admin/admin.php?page=auto_attachments | 1,803 | 4.02 | 80.02 | 58.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/auto-attachments/admin/rebuild.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; aARebuild has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto_attachments
- > Deprecated in wp-content/plugins/auto-attachments/admin/rebuild.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; aARebuild has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto_attachments
- > Deprecated in wp-content/plugins/auto-attachments/admin/rebuild.php+163
Function create_function() is deprecated
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto_attachments
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=auto_attachments
- > Notice in wp-content/plugins/auto-attachments/auto-attachments.php+219
Undefined index: serkoup
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/auto-attachments/auto-attachments.php
- > /wp-content/plugins/auto-attachments/admin/metaboxes.php
- > /wp-content/plugins/auto-attachments/admin/admin-area.php
- > /wp-content/plugins/auto-attachments/admin/rebuild.php
- > /wp-content/plugins/auto-attachments/admin/shortcodes.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Files Section & Audio Player), #2 (Audio & video Player), #3 (Admin Area), #4 (Shortcode Panel)
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
auto-attachments/auto-attachments.php 92% from 13 tests
"Auto Attachments" version 1.8.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)
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 detected11,124 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 567 | 500 | 5,231 |
CSS | 10 | 105 | 160 | 2,497 |
PO File | 9 | 759 | 1,052 | 1,909 |
PHP | 5 | 97 | 78 | 1,485 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.24MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/mime/application-vnd.openxmlformats-officedocument.presentationml.slideshow.png | 2.53KB | 2.02KB | ▼ 19.84% |
includes/images/mime/application-vnd.oasis.opendocument.formula.png | 2.82KB | 1.93KB | ▼ 31.71% |
includes/images/mime/applicationvnd.ms-excel.sheet.macroEnabled.12.png | 1.96KB | 2.05KB | 0.00% |
includes/images/mime/application-vnd.oasis.opendocument.text.png | 3.22KB | 2.29KB | ▼ 28.81% |
includes/images/mime/text-plain.png | 2.69KB | 1.88KB | ▼ 30.03% |