Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.42ms] Passed 4 tests
A check of server-side resources used by GL Import External Images form URLs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.53 ▼4.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.55 ▼2.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.06 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.61 ▲5.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.98 ▲4.58 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for GL Import External Images form URLs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼0.97 | 1.82 ▼0.07 | 40.26 ▼12.17 |
Dashboard /wp-admin | 2,206 ▲15 | 5.90 ▲1.00 | 103.35 ▼13.32 | 38.90 ▼10.87 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 40.18 ▲3.05 | 33.97 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 18.52 ▲0.86 | 607.89 ▼78.42 | 53.23 ▼16.09 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.25 ▲0.02 | 101.19 ▲2.45 | 41.35 ▼2.11 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: media library, external images, import, green life it, image...
gl-import-external-images/gl-import-external-images.php 92% from 13 tests
The main PHP script in "GL Import External Images form URLs" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,663 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 408 | 647 | 1,663 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 48.75 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 56 | 62.22% |
▷ Protected methods | 6 | 6.67% |
▷ Private methods | 28 | 31.11% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin