84% wp-image-rollup

Code Review | WP Image Rollup

WordPress plugin WP Image Rollup scored84%from 54 tests.

About plugin

  • Plugin page: wp-image-rollup
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Feb 1, 2016
  • Number of updates: 8
  • Update frequency: every 7.5 days
  • Top authors: BugTracker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.19ms] Passed 4 tests

A check of server-side resources used by WP Image Rollup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.78 ▲0.53
Dashboard /wp-admin3.34 ▲0.0448.31 ▼6.25
Posts /wp-admin/edit.php3.39 ▲0.0444.90 ▼5.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.47 ▼5.93
Media Library /wp-admin/upload.php3.26 ▲0.0436.22 ▼2.68
WP Image Roll Up /wp-admin/options-general.php?page=wp-image-roll-up3.2234.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
wp_image_roll_up
db_upgraded

Browser metrics Passed 4 tests

WP Image Rollup: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.45 ▼0.908.68 ▲7.0843.31 ▲4.66
Dashboard /wp-admin2,199 ▲225.61 ▲0.0695.38 ▼6.6141.24 ▼2.17
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0634.59 ▼2.4232.07 ▼4.77
Add New Post /wp-admin/post-new.php1,536 ▲823.11 ▲0.09742.65 ▲20.3055.50 ▲2.08
Media Library /wp-admin/upload.php1,404 ▲134.17 ▼0.05104.71 ▲7.4047.18 ▲3.41
WP Image Roll Up /wp-admin/options-general.php?page=wp-image-roll-up8552.0027.2629.76

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • wp_image_roll_up
    • db_upgraded

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)
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-image-rollup/image-roll-up.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (2.) image not found
You can take inspiration from this readme.txt

wp-image-rollup/image-roll-up.php 92% from 13 tests

Analyzing the main PHP file in "WP Image Rollup" version 1.3.1
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-image-rollup.php" instead of "image-roll-up.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
Everything looks great! No dangerous files found in this plugin246 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16348246

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected