90% navz-photo-gallery

Code Review | ACF Photo Gallery Field

WordPress plugin ACF Photo Gallery Field scored90%from 54 tests.

About plugin

  • Plugin page: navz-photo-gallery
  • Plugin version: 2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jul 2, 2016
  • Latest release: Sep 15, 2023
  • Number of updates: 179
  • Update frequency: every 14.7 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

50,000+ active /388,806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.30MB] [CPU: ▼12.23ms] Passed 4 tests

Server-side resources used by ACF Photo Gallery Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.20 ▼1.04
Dashboard /wp-admin3.32 ▲0.0249.84 ▲0.79
Posts /wp-admin/edit.php3.37 ▲0.0249.46 ▲0.59
Add New Post /wp-admin/post-new.php4.64 ▼1.2546.40 ▼49.27
Media Library /wp-admin/upload.php3.24 ▲0.0241.02 ▲2.42

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
recovery_mode_email_last_sent
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Photo Gallery Field
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.171.70 ▼0.0745.51 ▼0.71
Dashboard /wp-admin2,202 ▲255.65 ▲0.0587.14 ▲1.1239.68 ▼4.61
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0038.01 ▲0.2733.77 ▼2.48
Add New Post /wp-admin/post-new.php45 ▼1,4830.42 ▼22.760.09 ▼607.769.78 ▼41.69
Media Library /wp-admin/upload.php1,401 ▼24.18 ▼0.02105.12 ▼7.4071.54 ▲24.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: custom, album, gallery, acf, photo...

navz-photo-gallery/navz-photo-gallery.php Passed 13 tests

Analyzing the main PHP file in "ACF Photo Gallery Field" version 2.5
103 characters long description:
An extension for Advance Custom Fields which lets you add photo gallery functionality on your websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,310 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP21242402994
JavaScript22438228
CSS212088

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods36
▷ Static methods38.33%
▷ Public methods3186.11%
▷ Protected methods12.78%
▷ Private methods411.11%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin