84% allure-gallery

Code Review | Allure Gallery

WordPress plugin Allure Gallery scored84%from 54 tests.

About plugin

  • Plugin page: allure-gallery
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: May 7, 2022
  • Number of updates: 15
  • Update frequency: every 124.7 days
  • Top authors: allurewebsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,081 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.07MB] [CPU: ▲0.25ms] Passed 4 tests

Analyzing server-side resources used by Allure Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.22 ▲0.77
Dashboard /wp-admin3.38 ▲0.0749.04 ▼2.55
Posts /wp-admin/edit.php3.49 ▲0.1351.82 ▲0.57
Add New Post /wp-admin/post-new.php5.98 ▲0.0996.25 ▲2.22
Media Library /wp-admin/upload.php3.30 ▲0.0739.50 ▲4.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Allure Gallery: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.38 ▼0.909.14 ▲7.2942.76 ▲2.47
Dashboard /wp-admin2,199 ▲255.62 ▼0.0986.21 ▼8.4236.60 ▼1.85
Posts /wp-admin/edit.php2,104 ▲71.98 ▼0.0040.79 ▲4.7736.92 ▼4.95
Add New Post /wp-admin/post-new.php1,536 ▲823.04 ▼0.05603.43 ▼56.2044.19 ▼8.95
Media Library /wp-admin/upload.php1,410 ▲104.14 ▼0.07101.61 ▲2.4441.65 ▼1.45

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/allure-gallery/public/partials/allure-gallery-public-display.php
    • > /wp-content/plugins/allure-gallery/admin/partials/allure-gallery-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: gallery

allure-gallery/allure-gallery.php Passed 13 tests

Analyzing the main PHP file in "Allure Gallery" version 1.2.2
120 characters long description:
This plugin allows you to change the native wordpress gallery into one with a large top image and thumbnails underneath.

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
Everything looks great! No dangerous files found in this plugin385 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12162552358
Markdown111021
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected