74% galleriomjs-wp-gallery

Code Review | GalleriomJS WP Gallery

WordPress plugin GalleriomJS WP Gallery scored74%from 54 tests.

About plugin

  • Plugin page: galleriomjs-wp-ga...
  • Plugin version: 1.03
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Mar 7, 2018
  • Latest release: Nov 9, 2018
  • Number of updates: 10
  • Update frequency: every 24.7 days
  • Top authors: xaxill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.98ms] Passed 4 tests

This is a short check of server-side resources used by GalleriomJS WP Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.23 ▲0.56
Dashboard /wp-admin3.32 ▼0.0350.92 ▼8.68
Posts /wp-admin/edit.php3.37 ▲0.0146.12 ▼4.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.23 ▼10.23
Media Library /wp-admin/upload.php3.24 ▲0.0135.63 ▼0.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GalleriomJS WP Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.27 ▼1.291.79 ▼0.0343.45 ▲2.44
Dashboard /wp-admin2,206 ▲155.85 ▲0.9698.08 ▼5.9840.11 ▲0.90
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0134.97 ▼4.7731.75 ▼3.82
Add New Post /wp-admin/post-new.php1,547 ▲3318.48 ▲1.01615.13 ▼58.9371.63 ▲12.30
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0498.67 ▼13.8045.02 ▼5.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'galleriomjs_wp_gallery_uninstall' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/galleriomjs-wp-gallery/galleriom-js-gallery.php:26

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: photo-gallery, wordpress-gallery-plugin, gallery, galleriomjs-gallery

galleriomjs-wp-gallery/galleriom-js-gallery.php 92% from 13 tests

The primary PHP file in "GalleriomJS WP Gallery" version 1.03 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("galleriomjs-wp-gallery.php" instead of "galleriom-js-gallery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected65 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1112542
Markdown19021
CSS1011
JavaScript10131

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
galleriom2x.png7.15KB7.53KB0.00%