84% sabines-zoom-gallery

Code Review | Sabines Zoom Gallery

WordPress plugin Sabines Zoom Gallery scored84%from 54 tests.

About plugin

  • Plugin page: sabines-zoom-gallery
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2013
  • Latest release: Feb 2, 2015
  • Number of updates: 18
  • Update frequency: every 36.2 days
  • Top authors: sabinevi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.61ms] Passed 4 tests

An overview of server-side resources used by Sabines Zoom Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.97 ▼5.43
Dashboard /wp-admin3.32 ▲0.0249.89 ▼5.62
Posts /wp-admin/edit.php3.37 ▲0.0145.94 ▼5.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.80 ▼1.46
Media Library /wp-admin/upload.php3.24 ▲0.0138.75 ▼0.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sabines Zoom Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.69 ▼0.669.72 ▲7.5545.76 ▲2.14
Dashboard /wp-admin2,206 ▲185.85 ▲0.95113.34 ▼5.0044.66 ▼2.79
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0438.21 ▼2.2133.63 ▼1.77
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▼0.16647.53 ▼9.1651.77 ▼8.87
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.0493.50 ▼15.3840.39 ▼7.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sabines-zoom-gallery/sabines-zoom-gallery.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: jquery, gallery, javascript, image, photo...

sabines-zoom-gallery/sabines-zoom-gallery.php Passed 13 tests

The entry point to "Sabines Zoom Gallery" version 0.3.1 is a PHP file that has certain tags in its header comment area
81 characters long description:
Gallery plugin to make the large pic to zoom into the full version, no thumbnails

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1344665
JavaScript10143
CSS12019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin