78% photoshow

Code Review | Smart Image Gallery

WordPress plugin Smart Image Gallery scored78%from 54 tests.

About plugin

  • Plugin page: photoshow
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 13, 2012
  • Latest release: Jul 23, 2023
  • Number of updates: 73
  • Update frequency: every 55.6 days
  • Top authors: codepeople (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /39,469 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.05ms] Passed 4 tests

Server-side resources used by Smart Image Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.32 ▲2.50
Dashboard /wp-admin3.45 ▲0.1553.02 ▼1.76
Posts /wp-admin/edit.php3.57 ▲0.2151.62 ▼0.12
Add New Post /wp-admin/post-new.php6.05 ▲0.1799.21 ▼6.69
Media Library /wp-admin/upload.php3.38 ▲0.1540.83 ▲0.38

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Smart Image Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.44 ▼1.121.63 ▼0.3142.12 ▼1.12
Dashboard /wp-admin2,217 ▲355.30 ▲0.38118.36 ▲6.2444.06 ▼0.47
Posts /wp-admin/edit.php2,102 ▲102.46 ▲0.4134.32 ▼8.0132.31 ▼5.23
Add New Post /wp-admin/post-new.php6,193 ▲4,67119.16 ▼4.12945.43 ▲318.3465.65 ▲21.58
Media Library /wp-admin/upload.php1,399 ▲114.52 ▲0.31108.45 ▲3.9142.56 ▼5.46
Smart Image Gallery /wp-admin/photoshow.php260.440.1614.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_photoshowwidget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/photoshow/banner.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/photoshow/banner.php:107
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/photoshow/photoshow.clss.php:369

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/photoshow.php
    • > Network (severe)
    wp-admin/photoshow.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 24 tag instead of maximum 10
You can look at the official readme.txt

photoshow/photoshow.php 92% from 13 tests

The main PHP file in "Smart Image Gallery" ver. 1.0.18 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 329 characters long)

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
Everything looks great! No dangerous files found in this plugin1,681 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PO File3156251261

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/more.png0.30KB0.18KB▼ 40.39%