89% uxp-flatsome-gallery

Code Review | UXP Flatsome Gallery

WordPress plugin UXP Flatsome Gallery scored89%from 54 tests.

About plugin

  • Plugin page: uxp-flatsome-gallery
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 23, 2022
  • Latest release: Jun 23, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: nghaloc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.31ms] Passed 4 tests

Server-side resources used by UXP Flatsome Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.88 ▼7.02
Dashboard /wp-admin3.33 ▲0.0349.37 ▼6.32
Posts /wp-admin/edit.php3.45 ▲0.0952.42 ▲2.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.63 ▼9.52
Media Library /wp-admin/upload.php3.26 ▲0.0334.00 ▼2.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for UXP Flatsome Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.83 ▼0.529.43 ▲7.6940.20 ▼4.84
Dashboard /wp-admin2,195 ▲155.63 ▼0.0395.17 ▼0.2843.89 ▲1.68
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0138.40 ▲2.1530.60 ▼7.64
Add New Post /wp-admin/post-new.php1,531 ▲523.36 ▼0.20672.89 ▲47.0053.84 ▼8.70
Media Library /wp-admin/upload.php1,400 ▲94.18 ▼0.01100.83 ▼1.4441.09 ▼3.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

uxp-flatsome-gallery/uxp-flatsome-gallery.php 85% from 13 tests

The main file in "UXP Flatsome Gallery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin177 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP651274106
JavaScript22071

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin