90% fegallery

Code Review | Fegallery - Featured Gallery

WordPress plugin Fegallery - Featured Gallery scored90%from 54 tests.

About plugin

  • Plugin page: fegallery
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 19, 2016
  • Latest release: Feb 14, 2023
  • Number of updates: 7
  • Update frequency: every 320.3 days
  • Top authors: harisrozak (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,306 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Fegallery - Featured Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.09 ▼0.44
Dashboard /wp-admin3.31 ▲0.0144.32 ▼4.87
Posts /wp-admin/edit.php3.36 ▲0.0145.87 ▼1.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.87 ▼4.56
Media Library /wp-admin/upload.php3.23 ▲0.0135.49 ▲0.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Fegallery - Featured Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.73 ▼0.571.59 ▼0.4241.62 ▼7.59
Dashboard /wp-admin2,209 ▲214.85 ▼1.03113.40 ▼2.0541.48 ▼6.48
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0039.74 ▲4.5135.98 ▲2.22
Add New Post /wp-admin/post-new.php6,405 ▲4,88619.07 ▼4.09897.61 ▲308.0740.83 ▼15.53
Media Library /wp-admin/upload.php1,391 ▲34.28 ▼0.0396.11 ▲2.1946.59 ▲4.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: gallery shortcode, gallery, images gallery, fancybox, lightbox...

fegallery/fegallery.php Passed 13 tests

Analyzing the main PHP file in "Fegallery - Featured Gallery" version 1.1.1
35 characters long description:
Simple image gallery with lightbox.

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
No dangerous file extensions were detected1,119 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47586384
CSS5645368
PHP510235367

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/lightbox2/images/prev.png1.33KB1.59KB0.00%
lib/lightbox2/images/next.png1.32KB1.58KB0.00%
lib/lightbox2/images/close.png0.27KB0.29KB0.00%