78% zoom-image-shortcode

Code Review | Zoomify embed for WP

WordPress plugin Zoomify embed for WP scored78%from 54 tests.

About plugin

  • Plugin page: zoom-image-shortcode
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Apr 6, 2023
  • Number of updates: 31
  • Update frequency: every 76.4 days
  • Top authors: SdeWijs (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /3,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Zoomify embed for WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0535.64 ▼6.50
Dashboard /wp-admin3.34 ▲0.0446.06 ▼3.97
Posts /wp-admin/edit.php3.40 ▲0.0449.50 ▲1.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.11 ▼5.53
Media Library /wp-admin/upload.php3.27 ▲0.0433.65 ▼1.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Zoomify embed for WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲6314.50 ▼0.092.07 ▼0.2342.33 ▼3.14
Dashboard /wp-admin2,222 ▲315.79 ▼0.1197.79 ▼15.0139.86 ▼2.69
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0039.33 ▲1.7535.26 ▲2.00
Add New Post /wp-admin/post-new.php1,552 ▲3223.18 ▲0.09622.98 ▼46.7347.29 ▼12.94
Media Library /wp-admin/upload.php1,404 ▲134.24 ▲0.0695.16 ▼4.1640.49 ▼5.04

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zoom-image-shortcode/gh-zoomify.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zoom-image-shortcode/inc/gh-zoomify-settings.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === zoom-image-shortcode === )
You can look at the official readme.txt

zoom-image-shortcode/gh-zoomify.php 92% from 13 tests

The principal PHP file in "Zoomify embed for WP" v. 1.5.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zoom-image-shortcode.php" instead of "gh-zoomify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,169 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript107502
XML262100450
PHP24976211
CSS1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
686 PNG files occupy 0.51MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Skins/Default/standard/toolbarExpandDown.png0.30KB0.26KB▼ 14.74%
assets/Skins/Default/standard/panRightOver.png0.42KB0.38KB▼ 9.13%
assets/Skins/Default/standard/stopOver.png0.33KB0.33KB▼ 0.88%
assets/Skins/Light/large/editModeFreehandOver.png0.47KB0.45KB▼ 4.56%
assets/Skins/Light/large/logoDivider.png0.22KB0.09KB▼ 60.27%