74% run-time-image-resizing

Code Review | Run time Image resizing

WordPress plugin Run time Image resizing scored 74% from 54 tests.

About plugin

  • Plugin page: run-time-image-re...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.9.2
  • First release: May 23, 2016
  • Latest release: Nov 2, 2016
  • Number of updates: 14
  • Update frequency: every 11.8 days
  • Top authors: commercepundit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,484 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼301.68ms] Passed 4 tests

Server-side resources used by Run time Image resizing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2653.53 ▲2.08
Dashboard /wp-admin3.73 ▲0.3336.29 ▲3.94
Posts /wp-admin/edit.php3.96 ▲0.3241.29 ▲3.30
Add New Post /wp-admin/post-new.php7.21 ▲0.2193.49 ▼1,213.70
Media Library /wp-admin/upload.php3.58 ▲0.2925.53 ▲1.62
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius3.7326.82

Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 227 new files
Database: no new tables, 4 new options
New WordPress options
fs_debug_mode
fs_accounts
fs_api_cache
fs_active_plugins

Browser metrics Passed 4 tests

Run time Image resizing: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,022 ▲26817.80 ▲2.036.30 ▲0.912.01 ▼1.05
Dashboard /wp-admin3,131 ▲2708.04 ▲1.92142.84 ▲11.09172.81 ▲14.57
Posts /wp-admin/edit.php2,959 ▲2685.13 ▲1.9079.76 ▲16.00154.78 ▲10.05
Add New Post /wp-admin/post-new.php1,691 ▲3016.12 ▲0.10384.71 ▼56.63157.33 ▼0.34
Media Library /wp-admin/upload.php1,747 ▲495.54 ▲0.06105.11 ▼30.38197.11 ▲5.42
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius1,5344.2568.73135.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/run-time-image-resizing/freemius/includes/class-freemius.php+4088
    First parameter must either be an object or the name of an existing class
  • Zombie WordPress options were found after uninstall: 4 options
    • fs_api_cache
    • fs_debug_mode
    • fs_accounts
    • fs_active_plugins

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/run-time-image-resizing/run-time-image-resizing.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

run-time-image-resizing/run-time-image-resizing.php Passed 13 tests

This is the main PHP file of "Run time Image resizing" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
This plugin resize the image after upload.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected16,597 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
PHP713,0377,37512,921
PO File26506591,608
Sass15248801,558
JavaScript53768244
Markdown1590191
JSON20042
YAML22022
CSS90011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity41.97
▷ Minimum class complexity1.00
▷ Maximum class complexity943.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes70
▷ Abstract classes45.71%
▷ Concrete classes6694.29%
▷ Final classes00.00%
Methods1,238
▷ Static methods17213.89%
▷ Public methods90473.02%
▷ Protected methods241.94%
▷ Private methods31025.04%
Functions114
▷ Named functions114100.00%
▷ Anonymous functions00.00%
Constants182
▷ Global constants14881.32%
▷ Class constants3418.68%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/wordpress-sdk-master/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%