Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.33MB] [CPU: ▼155.31ms] Passed 4 tests
Analyzing server-side resources used by Auto Save Remote Images (Drafts)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 42.05 ▲15.41 |
Dashboard /wp-admin | 3.08 ▲0.02 | 47.78 ▼0.26 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.32 ▲3.30 |
Add New Post /wp-admin/post-new.php | 4.06 ▼1.37 | 45.80 ▼626.24 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.15 ▲1.97 |
ASRI Drafts /wp-admin/tools.php?page=auto-save-remote-images-drafts | 2.99 | 28.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Auto Save Remote Images (Drafts)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 16.24 ▲1.03 | 12.37 ▲3.20 | 50.29 ▲5.19 |
Dashboard /wp-admin | 2,972 ▲38 | 5.93 ▼0.21 | 149.30 ▼12.54 | 102.31 ▼13.41 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 72.05 ▼0.03 | 92.32 ▲7.67 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.28 ▼0.50 | 489.24 ▲78.97 | 113.66 ▲3.10 |
Media Library /wp-admin/upload.php | 1,846 ▲39 | 5.11 ▲0.08 | 156.12 ▲4.86 | 113.66 ▼5.37 |
ASRI Drafts /wp-admin/tools.php?page=auto-save-remote-images-drafts | 1,038 | 2.05 | 58.64 | 86.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-save-remote-images-drafts/auto-save-remote-images-drafts.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: draft, hotlink, images, remote image, attachment...
auto-save-remote-images-drafts/auto-save-remote-images-drafts.php 92% from 13 tests
This is the main PHP file of "Auto Save Remote Images (Drafts)" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin75 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 23 | 75 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected