57% final-tiles-grid-gallery-lite

Code Review | Image Photo Gallery Final Tiles Grid

WordPress plugin Image Photo Gallery Final Tiles Grid scored57%from 54 tests.

About plugin

Code review

54 tests

User reviews

343 reviews

Install metrics

30,000+ active /801,194 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.70MB] [CPU: ▼0.49ms] Passed 4 tests

An overview of server-side resources used by Image Photo Gallery Final Tiles Grid
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲0.7243.39 ▲1.14
Dashboard /wp-admin4.02 ▲0.7150.71 ▼0.95
Posts /wp-admin/edit.php4.07 ▲0.7151.11 ▲3.04
Add New Post /wp-admin/post-new.php6.55 ▲0.6788.93 ▼5.18
Media Library /wp-admin/upload.php3.94 ▲0.7144.62 ▲6.84
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.1137.76

Server storage [IO: ▲5.21MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 234 new files
Database: 2 new tables, 10 new options
New tables
wp_FinalTiles_gallery_images
wp_FinalTiles_gallery
New WordPress options
ftg_review
widget_recent-posts
fs_accounts
fs_active_plugins
db_upgraded
fs_debug_mode
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Image Photo Gallery Final Tiles Grid
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲21213.60 ▼0.776.62 ▲4.8229.53 ▼15.89
Dashboard /wp-admin2,244 ▲564.86 ▼0.17100.07 ▼13.9779.94 ▲33.39
Posts /wp-admin/edit.php2,124 ▲352.00 ▼0.0635.23 ▼0.6234.81 ▲1.02
Add New Post /wp-admin/post-new.php6,422 ▲4,88822.12 ▼0.85966.89 ▲290.9441.11 ▼17.39
Media Library /wp-admin/upload.php1,423 ▲354.22 ▼0.05103.99 ▼2.2072.80 ▲25.99
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0981.7426.0726.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/final-tiles-grid-gallery-lite/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 2 tables
    • wp_FinalTiles_gallery
    • wp_FinalTiles_gallery_images
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • widget_recent-posts
    • ftg_review
    • fs_debug_mode
    • fs_accounts
    • widget_recent-comments
    • widget_theysaidso_widget
    • fs_active_plugins
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/final-tiles-grid-gallery-lite/admin/facebook.php
    • > /wp-content/plugins/final-tiles-grid-gallery-lite/admin/edit-gallery.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: imageResults in wp-content/plugins/final-tiles-grid-gallery-lite/admin/include/image-list.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/final-tiles-grid-gallery-lite/admin/overview.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/final-tiles-grid-gallery-lite/admin/add-gallery.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/final-tiles-grid-gallery-lite/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/final-tiles-grid-gallery-lite/admin/include/tinymce-galleries.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/final-tiles-grid-gallery-lite/admin/include/edit-gallery.php:103
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/final-tiles-grid-gallery-lite/admin/include/image-list.php on line 11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/final-tiles-grid-gallery-lite/admin/include/fields.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

final-tiles-grid-gallery-lite/FinalTilesGalleryLite.php 92% from 13 tests

"Image Photo Gallery Final Tiles Grid" version 3.5.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("final-tiles-grid-gallery-lite.php" instead of "FinalTilesGalleryLite.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected62,004 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,41617,31638,347
CSS191,44141210,612
JavaScript102,0872,01410,491
PO File39261,3812,554

PHP code 0% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity96.48
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,360
▷ Static methods20615.15%
▷ Public methods95570.22%
▷ Protected methods171.25%
▷ Private methods38828.53%
Functions111
▷ Named functions111100.00%
▷ Anonymous functions00.00%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.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
16 compressed PNG files occupy 0.46MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lightbox/lightbox2/img/next.png1.32KB1.58KB0.00%
admin/images/everlightbox.png93.90KB94.42KB0.00%
lightbox/lightbox2/img/close.png0.27KB0.29KB0.00%
admin/tutorial/tutorial-add.png14.31KB4.02KB▼ 71.89%
lightbox/lightbox2/img/prev.png1.33KB1.59KB0.00%