94% foogallery-zoom-template

Code Review | FooGallery ZOOM Template

WordPress plugin FooGallery ZOOM Template scored 94% from 54 tests.

About plugin

  • Plugin page: foogallery-zoom-t...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 5.9.2
  • First release: Aug 13, 2014
  • Latest release: Jul 17, 2016
  • Number of updates: 11
  • Update frequency: every 94.3 days
  • Top authors: webdevmattcrom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 24,635 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by FooGallery ZOOM Template
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0564.21 ▲6.02
Dashboard /wp-admin3.45 ▲0.0434.79 ▼0.84
Posts /wp-admin/edit.php3.69 ▲0.0438.53 ▼23.35
Add New Post /wp-admin/post-new.php6.93 ▼0.0592.09 ▼1,175.19
Media Library /wp-admin/upload.php3.34 ▲0.0426.72 ▲2.81

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for FooGallery ZOOM Template
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4015.86 ▲0.255.58 ▼1.372.36 ▲0.09
Dashboard /wp-admin2,892 ▲346.14 ▲0.07125.40 ▼15.78219.65 ▼18.05
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0063.62 ▼1.27143.28 ▲0.07
Add New Post /wp-admin/post-new.php1,711 ▲4521.31 ▲0.78438.52 ▼65.49227.81 ▲32.19
Media Library /wp-admin/upload.php1,695 ▼35.49 ▼0.03148.84 ▼1.17271.05 ▲81.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/foogallery-zoom-template/foogallery-zoom-extension.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/foogallery-zoom-template/foogallery-zoom-init.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function foogallery_gallery_template_setting() in wp-content/plugins/foogallery-zoom-template/gallery-zoom.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

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
Please fix the following attributes: You can take inspiration from this readme.txt

foogallery-zoom-template/foogallery-zoom-extension.php 92% from 13 tests

This is the main PHP file of "FooGallery ZOOM Template" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("foogallery-zoom-template.php" instead of "foogallery-zoom-extension.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin474 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP33254330
CSS119972
JavaScript2183963
Markdown1309

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/zoom2.png1.14KB0.29KB▼ 74.16%
assets/border-style-icon-plain-rounded.png2.47KB1.63KB▼ 33.91%
assets/hover-effect-icon-eye.png3.21KB0.74KB▼ 77.06%
assets/hover-effect-icon-plus.png2.87KB0.16KB▼ 94.28%
assets/border-style-icon-circle-black.png3.12KB1.90KB▼ 39.12%