83% galleria-javascript-gallery3-slideshow

Code Review | Galleria Javascript Gallery3 Slideshow

WordPress plugin Galleria Javascript Gallery3 Slideshow scored83%from 54 tests.

About plugin

  • Plugin page: galleria-javascri...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Sep 28, 2015
  • Number of updates: 7
  • Update frequency: every 126.7 days
  • Top authors: BilliardGreg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.76ms] Passed 4 tests

A check of server-side resources used by Galleria Javascript Gallery3 Slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.49 ▼2.21
Dashboard /wp-admin3.32 ▲0.0143.93 ▼0.47
Posts /wp-admin/edit.php3.37 ▲0.0144.87 ▼5.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.45 ▼14.52
Media Library /wp-admin/upload.php3.24 ▲0.0138.56 ▲6.35

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Galleria Javascript Gallery3 Slideshow
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.67 ▼0.685.76 ▲3.7940.68 ▲0.60
Dashboard /wp-admin2,203 ▲185.79 ▼0.02109.89 ▲9.2539.14 ▼5.76
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0040.28 ▼2.4436.43 ▼2.48
Add New Post /wp-admin/post-new.php1,513 ▼2017.63 ▼5.54623.35 ▲19.8952.59 ▲0.63
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0193.27 ▼6.9540.30 ▼7.99

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/galleria-javascript-gallery3-slideshow/g3gs.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (No Screenshots) image not found
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

galleria-javascript-gallery3-slideshow/g3gs.php 85% from 13 tests

This is the main PHP file of "Galleria Javascript Gallery3 Slideshow" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 545 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("galleria-javascript-gallery3-slideshow.php" instead of "g3gs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,855 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,6551,1504,105
HTML55616400
CSS131213
PHP1391095
XML60042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
galleria/images/pure.png2.35KB1.85KB▼ 21.53%
galleria/themes/classic/classic-map.png1.80KB0.67KB▼ 62.77%