10% wp-resizely

Code Review | WP-Resizely - Dynamic image resizing for thumbnails and responsive images

WordPress plugin WP-Resizely - Dynamic image resizing for thumbnails and responsive images scored10%from 54 tests.

About plugin

  • Plugin page: wp-resizely
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Oct 23, 2013
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: jbrw1984 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,902 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Compile error in wp-content/plugins/wp-resizely/vendor/usabilitydynamics/lib-utility/lib/loader.php+294
    Redefinition of parameter $prepend

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.29ms] Passed 4 tests

Analyzing server-side resources used by WP-Resizely - Dynamic image resizing for thumbnails and responsive images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.14 ▼4.41
Dashboard /wp-admin3.31 ▲0.0045.15 ▼10.91
Posts /wp-admin/edit.php3.36 ▲0.0045.47 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.98 ▼3.36
Media Library /wp-admin/upload.php3.23 ▲0.0032.31 ▲1.57

Server storage [IO: ▲1.08MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 195 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Resizely - Dynamic image resizing for thumbnails and responsive images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.29 ▼1.104.92 ▲3.1340.43 ▼2.66
Dashboard /wp-admin2,206 ▲155.80 ▲0.9098.91 ▼4.4837.94 ▼8.51
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0240.24 ▲4.1635.58 ▲2.29
Add New Post /wp-admin/post-new.php1,538 ▲1023.51 ▲5.30629.31 ▲11.5946.51 ▼15.45
Media Library /wp-admin/upload.php1,391 ▲94.31 ▲0.1293.99 ▼20.3440.76 ▼4.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | 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
  • 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/NumberAndIntegerTypesTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/UnionWithNullValueTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Schema.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/RequireTest.php:5
    • > PHP Fatal error
      Cannot use 'String' as class name as it is reserved in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Enum.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Collection.php:11
    • > PHP Fatal error
      Cannot use 'Object' as class name as it is reserved in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/BaseTestCase.php:7

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cdn, html5, responsive, thumbnails, dom...

wp-resizely/wp-resizely.php Passed 13 tests

"WP-Resizely - Dynamic image resizing for thumbnails and responsive images" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
23 characters long description:
Dynamic image resizing.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
  • Do not include executable or dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/docs/make.bat
19,647 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript201,9462,2838,653
PHP508601,7743,960
HTML1384733,190
JSON23002,529
CSS213593556
make33615171
DOS Batch1231166
XHTML3316162
Markdown7620149
PO File23338
Python16514828
XML12024
reStructuredText1202616
YAML1205

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity13.42
▷ Minimum class complexity1.00
▷ Maximum class complexity220.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes42
▷ Abstract classes24.76%
▷ Concrete classes4095.24%
▷ Final classes00.00%
Methods197
▷ Static methods7538.07%
▷ Public methods18593.91%
▷ Protected methods126.09%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/usabilitydynamics/lib-ui/static/codex/assets/css/logo.png6.16KB3.02KB▼ 51.00%
vendor/usabilitydynamics/lib-utility/static/codex/assets/css/logo.png6.16KB3.02KB▼ 51.00%
vendor/usabilitydynamics/lib-ui/static/codex/assets/favicon.png0.72KB0.71KB▼ 2.16%
vendor/usabilitydynamics/lib-utility/static/codex/assets/css/external-small.png0.48KB0.38KB▼ 19.76%
vendor/usabilitydynamics/resizely-client/static/codex/assets/css/external-small.png0.48KB0.38KB▼ 19.76%