89% ely-gallery

Code Review | Ely - Wordpress Gutenberg Modern Gallery

WordPress plugin Ely - Wordpress Gutenberg Modern Gallery scored 89% from 54 tests.

About plugin

  • Plugin page: ely-gallery
  • Plugin version: 3.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 16, 2019
  • Latest release: Dec 16, 2019
  • Number of updates: 4
  • Update frequency: every 6.0 days
  • Top authors: delabon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 543 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.08MB] [CPU: ▼4.65ms] Passed 4 tests

Server-side resources used by Ely - Wordpress Gutenberg Modern Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.38 ▼1.24
Dashboard /wp-admin3.37 ▲0.0752.18 ▼2.26
Posts /wp-admin/edit.php3.49 ▲0.1345.82 ▼3.30
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.47 ▼11.14
Media Library /wp-admin/upload.php3.30 ▲0.0732.54 ▼1.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ely - Wordpress Gutenberg Modern Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲15313.62 ▼0.796.02 ▲4.1944.97 ▲5.05
Dashboard /wp-admin2,229 ▲444.89 ▼0.1798.78 ▼1.0142.23 ▼2.33
Posts /wp-admin/edit.php2,109 ▲201.99 ▲0.0133.15 ▼6.5940.04 ▲3.94
Add New Post /wp-admin/post-new.php6,450 ▲4,93020.60 ▼2.52938.10 ▲337.3055.22 ▲0.19
Media Library /wp-admin/upload.php1,408 ▲174.22 ▼0.02104.80 ▲7.0048.15 ▲4.17

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

ely-gallery/plugin.php 92% from 13 tests

The main file in "Ely - Wordpress Gutenberg Modern Gallery" v. 3.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ely-gallery.php" instead of "plugin.php")

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
There were no executable files found in this plugin4,187 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121,0771233,029
Sass312044584
PHP6127124387
CSS3141106
Markdown131081

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.80
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods23
▷ Static methods730.43%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin