79% coral-remote-images

Code Review | Coral - Remote Images

WordPress plugin Coral - Remote Images scored 79% from 54 tests.

About plugin

  • Plugin page: coral-remote-images
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-4.7
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Jan 20, 2017
  • Number of updates: 19
  • Update frequency: every 12.7 days
  • Top authors: Big Sea (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 2,699 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0641.33 ▼0.56
Dashboard /wp-admin3.32 ▲0.0144.56 ▼8.65
Posts /wp-admin/edit.php3.43 ▲0.0747.15 ▼1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.57 ▼5.37
Media Library /wp-admin/upload.php3.24 ▲0.0135.42 ▲1.43
Remote Images /wp-admin/options-general.php?page=coral-remote-images/coral-remote-images.php3.1828.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.33 ▼1.051.94 ▼0.0442.92 ▼2.20
Dashboard /wp-admin2,210 ▲254.85 ▼1.00100.54 ▼7.6339.30 ▼5.56
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0040.13 ▲2.4535.86 ▲0.78
Add New Post /wp-admin/post-new.php1,545 ▲1018.13 ▼4.89608.57 ▼37.3857.32 ▲5.77
Media Library /wp-admin/upload.php1,389 ▼24.20 ▲0.0897.02 ▼3.4243.69 ▲0.56
Remote Images /wp-admin/options-general.php?page=coral-remote-images/coral-remote-images.php7852.0525.5824.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP34817178

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 code0.22
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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