78% shutter-reloaded-plus

Code Review | Shutter Reloaded Plus

WordPress plugin Shutter Reloaded Plus scored78%from 54 tests.

About plugin

  • Plugin page: shutter-reloaded-...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Dec 6, 2013
  • Latest release: Dec 13, 2013
  • Number of updates: 17
  • Update frequency: every 0.4 days
  • Top authors: danaila_iulian (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /6,778 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Shutter Reloaded Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.22 ▼0.74
Dashboard /wp-admin3.35 ▲0.0448.85 ▼0.30
Posts /wp-admin/edit.php3.40 ▲0.0450.60 ▲0.44
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.66 ▼15.90
Media Library /wp-admin/upload.php3.27 ▲0.0434.32 ▼1.60
Shutter Reloaded Plus /wp-admin/themes.php?page=shutter-reloaded3.4632.84

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
srel_excluded
srel_options
srel_included
widget_recent-posts
srel_main
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Shutter Reloaded Plus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.16 ▼0.1947.81 ▲46.0948.57 ▲10.57
Dashboard /wp-admin2,199 ▲225.63 ▲0.0386.38 ▼6.1441.14 ▼1.59
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0339.21 ▼3.2636.87 ▼7.16
Add New Post /wp-admin/post-new.php1,529 ▲322.96 ▼0.88644.01 ▲4.0252.89 ▼5.97
Media Library /wp-admin/upload.php1,398 ▼24.25 ▲0.1098.40 ▼8.8248.36 ▲1.34
Shutter Reloaded Plus /wp-admin/themes.php?page=shutter-reloaded1,7852.8160.2733.92

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
  • This plugin does not fully uninstall, leaving 10 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • srel_options
    • srel_main
    • widget_recent-comments
    • can_compress_scripts
    • srel_excluded
    • widget_recent-posts
    • srel_included
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=shutter-reloaded
    • > User deprecated in wp-includes/functions.php+5453
    Function js_escape is deprecated since version 2.8.0! Use esc_js() instead.
    • > GET request to /wp-admin/themes.php?page=shutter-reloaded
    • > Notice in wp-content/plugins/shutter-reloaded-plus/admin-page.php+367
    Undefined index: startFull

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shutter-reloaded-plus/shutter-reloaded.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: responsive, arrow keys, slideshow, lightbox, gallery...

shutter-reloaded-plus/shutter-reloaded.php 85% from 13 tests

The main PHP script in "Shutter Reloaded Plus" version 0.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shutter-reloaded-plus.php" instead of "shutter-reloaded.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 288 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,725 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File75045891,104
PHP24915588
CSS10132
JavaScript1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
menu/icons.png12.49KB3.73KB▼ 70.18%