Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.96ms] Passed 4 tests
Server-side resources used by Coral - Remote Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 41.33 ▼0.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.56 ▼8.65 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.15 ▼1.26 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.57 ▼5.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.42 ▲1.43 |
Remote Images /wp-admin/options-general.php?page=coral-remote-images/coral-remote-images.php | 3.18 | 28.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Coral - Remote Images: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.33 ▼1.05 | 1.94 ▼0.04 | 42.92 ▼2.20 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼1.00 | 100.54 ▼7.63 | 39.30 ▼5.56 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.00 | 40.13 ▲2.45 | 35.86 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.13 ▼4.89 | 608.57 ▼37.38 | 57.32 ▲5.77 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.20 ▲0.08 | 97.02 ▼3.42 | 43.69 ▲0.56 |
Remote Images /wp-admin/options-general.php?page=coral-remote-images/coral-remote-images.php | 785 | 2.05 | 25.58 | 24.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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
- > GET request to /wp-admin/options-general.php?page=coral-remote-images/coral-remote-images.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method BigSea\Coral\RemoteImages::renderAdminPage() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/coral-remote-images/templates/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function BigSea\\Coral\\add_action() in wp-content/plugins/coral-remote-images/coral-remote-images.php:32
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: local, development, uploads, images, testing
coral-remote-images/coral-remote-images.php Passed 13 tests
Analyzing the main PHP file in "Coral - Remote Images" version 1.1
127 characters long description:
Save space and download time! Leave your uploaded images where they’re at, in /wp-content, during development on your local.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin178 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 17 | 178 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin