90% fws-resize-on-demand

Code Review | FWS On-Demand-Resizer

WordPress plugin FWS On-Demand-Resizer scored90%from 54 tests.

About plugin

  • Plugin page: fws-resize-on-demand
  • Plugin version: 0.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Oct 12, 2022
  • Number of updates: 26
  • Update frequency: every 29.4 days
  • Top authors: tekod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.24ms] Passed 4 tests

Analyzing server-side resources used by FWS On-Demand-Resizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.57 ▼3.08
Dashboard /wp-admin3.45 ▲0.1547.70 ▼0.99
Posts /wp-admin/edit.php3.57 ▲0.2150.56 ▼2.44
Add New Post /wp-admin/post-new.php6.03 ▲0.1596.42 ▼2.44
Media Library /wp-admin/upload.php3.38 ▲0.1537.54 ▲3.99
ResizeOnDemand /wp-admin/options-general.php?page=fws-resize-on-demand3.3635.82

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

FWS On-Demand-Resizer: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.23 ▼1.144.55 ▲2.8740.50 ▼8.11
Dashboard /wp-admin2,212 ▲274.83 ▼0.03108.06 ▼1.3638.85 ▼5.44
Posts /wp-admin/edit.php2,098 ▲122.03 ▼0.0040.54 ▼0.3636.55 ▲0.15
Add New Post /wp-admin/post-new.php1,539 ▲2523.58 ▲5.88602.62 ▼81.5061.79 ▼2.58
Media Library /wp-admin/upload.php1,397 ▲94.19 ▼0.0395.04 ▼15.8642.29 ▼5.03
ResizeOnDemand /wp-admin/options-general.php?page=fws-resize-on-demand1,6479.39296.9671.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: smart, resize, resizing, resizer, images...

fws-resize-on-demand/fws-resize-on-demand.php Passed 13 tests

The main PHP script in "FWS On-Demand-Resizer" version 0.4.0 is automatically included on every request by WordPress
38 characters long description:
On-demand image resizer for WordPress.

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
There were no executable files found in this plugin692 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14244324679
JavaScript12313

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.62
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods41
▷ Static methods3482.93%
▷ Public methods2663.41%
▷ Protected methods1536.59%
▷ Private methods00.00%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin