84% fast-gallery-lite

Code Review | Fast Gallery Lite

WordPress plugin Fast Gallery Lite scored84%from 54 tests.

About plugin

  • Plugin page: fast-gallery-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 11, 2017
  • Latest release: Jun 11, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ad-theme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /919 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Fast Gallery Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0250.76 ▲2.72
Dashboard /wp-admin3.32 ▲0.0253.09 ▲6.77
Posts /wp-admin/edit.php3.37 ▲0.0144.61 ▼7.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.89 ▼13.56
Media Library /wp-admin/upload.php3.24 ▲0.0231.76 ▼3.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Fast Gallery Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲23713.94 ▼0.3610.98 ▲8.8449.69 ▲0.49
Dashboard /wp-admin2,243 ▲555.02 ▲0.11102.80 ▼22.2235.80 ▼19.69
Posts /wp-admin/edit.php2,131 ▲392.33 ▲0.3642.54 ▲4.2931.06 ▼7.15
Add New Post /wp-admin/post-new.php1,549 ▲2623.62 ▲0.11648.55 ▼23.8936.50 ▼26.67
Media Library /wp-admin/upload.php1,428 ▲404.45 ▲0.22103.00 ▼10.9543.42 ▼3.58

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

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× 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/fast-gallery-lite/assets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-gallery-lite/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-gallery-lite/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-gallery-lite/media_options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: gallery, lightbox, reponsive gallery, magnific popup, images...

fast-gallery-lite/fast-gallery-lite.php Passed 13 tests

The main file in "Fast Gallery Lite" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Fast Gallery Lite - Create your gallery in one minutes.

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
Success! There were no dangerous files found in this plugin5,156 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS462292,825
JavaScript34302341,411
SVG100461
PHP510486400
PO File1212159

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
40 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/prettyPhoto/facebook/btnNext.png0.83KB0.57KB▼ 30.77%
img/prettyPhoto/default/default_thumb.png1.50KB0.61KB▼ 59.47%
img/prettyPhoto/dark_rounded/btnPrevious.png1.41KB1.19KB▼ 15.74%
img/prettyPhoto/facebook/contentPatternRight.png0.13KB0.10KB▼ 24.26%
img/prettyPhoto/arrowsblack.png0.30KB0.18KB▼ 40.32%