84% oomph-wp-inline-image-resizer

Code Review | Oomph WP Inline Image Resize

WordPress plugin Oomph WP Inline Image Resize scored84%from 54 tests.

About plugin

  • Plugin page: oomph-wp-inline-i...
  • Plugin version: 0.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2013
  • Latest release: Jan 24, 2014
  • Number of updates: 25
  • Update frequency: every 8.1 days
  • Top authors: bendoh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,323 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.32ms] Passed 4 tests

A check of server-side resources used by Oomph WP Inline Image Resize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.33 ▼11.11
Dashboard /wp-admin3.38 ▲0.0850.55 ▲6.89
Posts /wp-admin/edit.php3.43 ▲0.0749.34 ▲4.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.32 ▲1.58
Media Library /wp-admin/upload.php3.31 ▲0.0735.82 ▲3.73

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification detected: 1 file (0.59KB) outside of "wp-content/plugins/oomph-wp-inline-image-resizer/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Oomph WP Inline Image Resize
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.66 ▼0.721.69 ▼0.0640.21 ▼11.06
Dashboard /wp-admin2,206 ▲184.82 ▼1.08111.01 ▲7.3041.30 ▲1.00
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0138.62 ▼1.1136.38 ▲2.35
Add New Post /wp-admin/post-new.php1,528 ▼1522.91 ▲4.29623.70 ▼20.6463.85 ▲6.09
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.02101.21 ▲0.6140.67 ▼2.61

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oomph-wp-inline-image-resizer/oomph-wp-inline-image-resize.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, sidebar, clone

oomph-wp-inline-image-resizer/oomph-wp-inline-image-resize.php 92% from 13 tests

The main PHP script in "Oomph WP Inline Image Resize" version 0.5.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("oomph-wp-inline-image-resizer.php" instead of "oomph-wp-inline-image-resize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin331 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1109106331

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity97.00
▷ Minimum class complexity97.00
▷ Maximum class complexity97.00
Average method complexity7.86
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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