84% ultimate-image-optimization-helpers

Code Review | Ultimate Image Optimization Helpers

WordPress plugin Ultimate Image Optimization Helpers scored 84% from 54 tests.

About plugin

  • Plugin page: ultimate-image-op...
  • Plugin version: 0.2.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2018
  • Latest release: Jan 15, 2018
  • Number of updates: 69
  • Update frequency: every 0.1 days
  • Top authors: healdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,873 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼4.14ms] Passed 4 tests

A check of server-side resources used by Ultimate Image Optimization Helpers
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.33 ▼7.32
Dashboard /wp-admin3.59 ▲0.2946.88 ▼2.00
Posts /wp-admin/edit.php3.70 ▲0.3546.24 ▼4.88
Add New Post /wp-admin/post-new.php6.17 ▲0.2888.78 ▼2.34
Media Library /wp-admin/upload.php3.51 ▲0.2835.53 ▲1.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
hdev_optimg
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Image Optimization Helpers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼0.786.08 ▲4.2642.84 ▼9.87
Dashboard /wp-admin2,209 ▲185.91 ▼0.1498.34 ▼0.1340.30 ▲0.70
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.1438.02 ▼1.7035.28 ▼2.18
Add New Post /wp-admin/post-new.php1,536 ▼823.21 ▲4.64626.80 ▼22.6861.19 ▼1.10
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0395.75 ▼4.2242.51 ▼1.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • hdev_optimg
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-image-optimization-helpers/lib/admin.php:22

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

ultimate-image-optimization-helpers/ultimate-image-optimization-helpers.php Passed 13 tests

"Ultimate Image Optimization Helpers" version 0.2.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Optimize images and compress file sizes to improve SEO & performance while preserving/improving image quality.

Code Analysis Passed 3 tests

File types Passed 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
No dangerous file extensions were detected1,427 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP85147321,239
CSS25292
JavaScript2141360
Markdown214036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity49.50
▷ Minimum class complexity2.00
▷ Maximum class complexity106.00
Average method complexity7.30
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods47
▷ Static methods1838.30%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin