84% wpsso-tune-image-editors

Code Review | WPSSO Tune WP Image Editors

WordPress plugin WPSSO Tune WP Image Editors scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-tune-image-...
  • Plugin version: 4.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Nov 9, 2023
  • Number of updates: 1,236
  • Update frequency: every 1.7 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /37,364 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
Installer ran successfully

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

This is a short check of server-side resources used by WPSSO Tune WP Image Editors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.30 ▲5.19
Dashboard /wp-admin3.33 ▲0.0344.49 ▼2.71
Posts /wp-admin/edit.php3.44 ▲0.0948.56 ▲1.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.60 ▼1.66
Media Library /wp-admin/upload.php3.25 ▲0.0230.48 ▼3.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WPSSO Tune WP Image Editors: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.72 ▲0.001.69 ▼0.2246.58 ▼1.88
Dashboard /wp-admin2,201 ▲245.62 ▼0.0282.66 ▼6.9839.96 ▲0.10
Posts /wp-admin/edit.php2,106 ▲61.94 ▼0.0235.20 ▼0.8633.53 ▼1.35
Add New Post /wp-admin/post-new.php1,541 ▲1525.16 ▲1.70606.82 ▼62.8467.10 ▼2.11
Media Library /wp-admin/upload.php1,403 ▲94.22 ▲0.04100.93 ▲3.5643.18 ▲1.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wpsso-tune-image-editors/gettext/gettext-lib-abstract-com.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/filters.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/filters-upgrade.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/submenu/image-editors.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/filters-wp.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/register.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/abstract/add-on.php
    • > /wp-content/plugins/wpsso-tune-image-editors/lib/imagick.php
    • > /wp-content/plugins/wpsso-tune-image-editors/gettext/gettext-lib-config.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: image, resize, imagemagick, sharpen, imagick

wpsso-tune-image-editors/wpsso-tune-image-editors.php Passed 13 tests

The principal PHP file in "WPSSO Tune WP Image Editors" v. 4.0.0 is loaded by WordPress automatically on each request
104 characters long description:
Improves the appearance of WordPress images for better click through rates from social and search sites.

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
Good job! No executable or dangerous file extensions detected1,077 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15469236848
PO File15557148
Markdown124051
HTML232030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.58
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods46
▷ Static methods817.39%
▷ Public methods3780.43%
▷ Protected methods510.87%
▷ Private methods48.70%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png24.49KB8.54KB▼ 65.12%
images/icon-256x256.png67.32KB22.36KB▼ 66.79%