Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.54ms] Passed 4 tests
This is a short check of server-side resources used by Import external attachments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.53 ▲1.97 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.21 ▼0.09 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 42.21 ▼0.13 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.20 ▼10.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.70 ▲0.56 |
Import attachments /wp-admin/upload.php?page=external_image | 3.26 | 33.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Import external attachments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.51 ▲0.27 | 1.71 ▲0.14 | 40.05 ▲3.01 |
Dashboard /wp-admin | 2,204 ▲26 | 5.62 ▲0.06 | 83.78 ▼19.55 | 36.20 ▼0.95 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▼0.02 | 41.05 ▲4.21 | 38.44 ▲4.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 22.89 ▼0.09 | 592.55 ▼26.50 | 59.11 ▼4.98 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.05 | 99.47 ▼5.96 | 44.56 ▲0.90 |
Import attachments /wp-admin/upload.php?page=external_image | 857 | 2.00 | 23.96 | 27.32 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/upload.php?page=external_image
- > Notice in wp-content/plugins/import-external-attachments/import-external-attachments.php+501
Undefined variable: posts_to_fix
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/import-external-attachments/import-external-attachments.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-external-attachments/ajax.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
import-external-attachments/import-external-attachments.php Passed 13 tests
The main file in "Import external attachments" v. 1.5.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Examines the text of a post and makes local copies of all the images & documents, adding them as gallery attachments on the post itself.
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
Success! There were no dangerous files found in this plugin494 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 139 | 71 | 401 |
JavaScript | 1 | 30 | 21 | 93 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There were not PNG files found in your plugin