84% gallery-masonry-editor

Code Review | Gallery in columns

WordPress plugin Gallery in columns scored84%from 54 tests.

About plugin

  • Plugin page: gallery-masonry-e...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2020
  • Latest release: Apr 27, 2020
  • Number of updates: 11
  • Update frequency: every 0.7 days
  • Top authors: picfab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /4,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Gallery in columns
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.14 ▲1.10
Dashboard /wp-admin3.31 ▲0.0148.60 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0146.23 ▼4.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.22 ▼16.47
Media Library /wp-admin/upload.php3.23 ▲0.0140.24 ▼0.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gallery in columns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.37 ▼0.221.58 ▼0.4840.69 ▲0.47
Dashboard /wp-admin2,194 ▲175.57 ▼0.0585.53 ▼1.5837.35 ▼10.04
Posts /wp-admin/edit.php2,105 ▲52.04 ▲0.0135.56 ▼1.7629.43 ▼6.92
Add New Post /wp-admin/post-new.php1,539 ▲823.02 ▲0.08647.26 ▼32.6954.27 ▼3.14
Media Library /wp-admin/upload.php1,402 ▲24.21 ▲0.0494.78 ▼22.0140.33 ▼5.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-masonry-editor/gallery-in-columns.php:9

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: pictures, picture, image, gallery, galerie...

gallery-masonry-editor/gallery-in-columns.php 85% from 13 tests

The main PHP file in "Gallery in columns" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-masonry-editor.php" instead of "gallery-in-columns.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS102786
PHP10712

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin