Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.92ms] Passed 4 tests
This is a short check of server-side resources used by Import CDN-Remote Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.09 ▲0.74 |
Dashboard /wp-admin | 3.44 ▲0.14 | 50.34 ▼4.02 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 46.73 ▼2.01 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.18 ▼6.40 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.80 ▲3.31 |
Import images /wp-admin/upload.php?page=aauicri-import | 3.33 | 32.39 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
aauicri_settings |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Import CDN-Remote Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 13.18 ▼1.12 | 1.68 ▼0.05 | 47.57 ▼0.13 |
Dashboard /wp-admin | 2,232 ▲26 | 4.88 ▼0.94 | 102.81 ▼2.59 | 36.56 ▼9.59 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.06 ▲0.02 | 35.54 ▼3.46 | 31.92 ▼7.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.03 ▲0.08 | 687.20 ▲13.10 | 59.12 ▲2.38 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.27 ▲0.01 | 112.14 ▼4.50 | 50.74 ▲1.17 |
Import images /wp-admin/upload.php?page=aauicri-import | 1,198 | 1.74 | 29.08 | 41.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/import-cdn-remote-images/import-cdn-remote-images.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: remote file, remote media, remote image, external media, cloudinary...
import-cdn-remote-images/import-cdn-remote-images.php Passed 13 tests
The primary PHP file in "Import CDN-Remote Images" version 2.01 is used by WordPress to initiate all plugin functionality
116 characters long description:
Add Cloudinary images and videos to the media library without importing, i.e. uploading them to your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,171 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 82 | 91 | 690 |
JavaScript | 1 | 27 | 18 | 368 |
PO File | 1 | 23 | 23 | 61 |
CSS | 1 | 5 | 1 | 52 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
There were not PNG files found in your plugin