84% zoom-openseadragon

Code Review | Zoom OpenSeadragon

WordPress plugin Zoom OpenSeadragon scored 84% from 54 tests.

About plugin

  • Plugin page: zoom-openseadragon
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2016
  • Latest release: Aug 19, 2017
  • Number of updates: 20
  • Update frequency: every 28.1 days
  • Top authors: altert (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 3,027 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.86ms] Passed 4 tests

This is a short check of server-side resources used by Zoom OpenSeadragon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.89 ▼8.21
Dashboard /wp-admin3.35 ▲0.0445.52 ▼4.49
Posts /wp-admin/edit.php3.40 ▲0.0443.90 ▼2.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.68 ▼8.40
Media Library /wp-admin/upload.php3.27 ▲0.0433.76 ▲2.25

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Zoom OpenSeadragon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11613.82 ▼0.9310.32 ▲7.9645.07 ▼1.10
Dashboard /wp-admin2,209 ▲244.86 ▼1.03101.30 ▼14.7041.94 ▼2.84
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0433.82 ▲0.5233.98 ▼3.38
Add New Post /wp-admin/post-new.php1,514 ▼2817.65 ▼0.54650.54 ▲22.6861.11 ▲4.94
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0297.60 ▲1.3740.00 ▼4.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× 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/zoom-openseadragon/zoom-openseadragon.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: tiles, highres, zoom, images, gallery...

zoom-openseadragon/zoom-openseadragon.php 92% from 13 tests

This is the main PHP file of "Zoom OpenSeadragon" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)

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
There were no executable files found in this plugin276 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP18229228
PO File181338
JavaScript1267
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zoomout_pressed.png4.89KB1.80KB▼ 63.11%
images/zoomout_hover.png4.82KB1.82KB▼ 62.14%
images/zoomin_grouphover.png4.68KB1.79KB▼ 61.68%
images/zoomin_hover.png5.01KB1.85KB▼ 63.01%
images/previous_grouphover.png2.92KB1.87KB▼ 35.82%