Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.36ms] Passed 4 tests
An overview of server-side resources used by Email Media Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 44.35 ▲2.76 |
Dashboard /wp-admin | 3.40 ▲0.09 | 57.97 ▲9.86 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.44 ▼3.87 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.12 ▼3.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.37 ▲6.08 |
Email Media Import /wp-admin/options-general.php?page=email_media_import_settings | 3.26 | 34.28 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Email Media Import
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.58 ▼0.40 | 2.14 ▲0.17 | 45.53 ▼2.40 |
Dashboard /wp-admin | 2,207 ▲19 | 4.88 ▲0.01 | 115.32 ▲0.33 | 42.31 ▲2.61 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.01 | 36.73 ▼4.71 | 34.30 ▼5.80 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.19 ▲0.13 | 664.76 ▼11.62 | 65.31 ▲13.07 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.10 | 98.15 ▼5.22 | 47.37 ▲0.56 |
Email Media Import /wp-admin/options-general.php?page=email_media_import_settings | 851 | 2.17 | 28.40 | 28.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=email_media_import_settings
- > Notice in wp-content/plugins/email-media-import/settings.php+83
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: mailgun, email, media
email-media-import/email-media-import.php Passed 13 tests
The main file in "Email Media Import" v. 0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Plugin for importing media via email
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 plugin428 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 114 | 19 | 414 |
Markdown | 1 | 9 | 0 | 14 |
PHP code Passed 2 tests
A short review of 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.34 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 19.05% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin