89% isizer

Code Review | Isizer - image size manager

WordPress plugin Isizer - image size manager scored89%from 54 tests.

About plugin

  • Plugin page: isizer
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Nov 10, 2019
  • Latest release: Nov 10, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: seredniy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.83ms] Passed 4 tests

Server-side resources used by Isizer - image size manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.31 ▼2.64
Dashboard /wp-admin3.33 ▲0.0253.32 ▼0.97
Posts /wp-admin/edit.php3.38 ▲0.0257.35 ▲3.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.26 ▼6.72
Media Library /wp-admin/upload.php3.25 ▲0.0243.15 ▲3.01
Isizer /wp-admin/options-general.php?page=isizer3.2235.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Isizer - image size manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.48 ▲0.171.74 ▼0.2643.68 ▼1.49
Dashboard /wp-admin2,206 ▲355.65 ▲0.0784.56 ▼13.3238.75 ▼5.95
Posts /wp-admin/edit.php2,116 ▲162.05 ▲0.0436.69 ▲1.4032.70 ▼2.41
Add New Post /wp-admin/post-new.php1,535 ▲423.43 ▲0.29704.72 ▲38.8153.01 ▲3.08
Media Library /wp-admin/upload.php1,416 ▲164.17 ▼0.14109.10 ▲12.4347.23 ▲1.87
Isizer /wp-admin/options-general.php?page=isizer9332.0928.5932.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #1 in isizer/assets to your readme.txt
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

isizer/isizer.php 92% from 13 tests

"Isizer - image size manager" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected690 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10181309534
CSS1250143
JavaScript141412
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods37.14%
▷ Public methods3890.48%
▷ Protected methods12.38%
▷ Private methods37.14%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected