84% isshrinker

Code Review | isShrinker

WordPress plugin isShrinker scored84%from 54 tests.

About plugin

  • Plugin page: isshrinker
  • Plugin version: 1.52
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Mar 27, 2022
  • Number of updates: 52
  • Update frequency: every 56.0 days
  • Top authors: eaxjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,880 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.06ms] Passed 4 tests

This is a short check of server-side resources used by isShrinker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.68 ▼6.49
Dashboard /wp-admin3.36 ▲0.0644.87 ▼3.70
Posts /wp-admin/edit.php3.41 ▲0.0651.47 ▲0.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.84 ▼2.61
Media Library /wp-admin/upload.php3.28 ▲0.0539.52 ▲2.32
isShrinker /wp-admin/options-general.php?page=isShrinker_menu3.2541.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by isShrinker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.18 ▼1.301.91 ▲0.1442.31 ▼4.63
Dashboard /wp-admin2,213 ▲285.85 ▼0.01110.60 ▲5.0038.43 ▼4.99
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0440.00 ▲1.1935.12 ▲3.51
Add New Post /wp-admin/post-new.php1,540 ▲523.50 ▲0.16667.47 ▼32.9864.06 ▲9.22
Media Library /wp-admin/upload.php1,389 ▼24.22 ▼0.0392.41 ▼6.7343.41 ▼1.56
isShrinker /wp-admin/options-general.php?page=isShrinker_menu1,1143.4069.2037.13

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/isshrinker/isshrinker.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (2.) image not found
Please take inspiration from this readme.txt

isshrinker/isshrinker.php 92% from 13 tests

"isShrinker" version 1.52's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected322 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11558233
PO File1303089

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
PNG images were not found in this plugin