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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.39ms] Passed 4 tests
An overview of server-side resources used by Gallerya
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.23 ▼4.93 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.57 ▲1.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.46 ▼8.65 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.05 ▼2.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.32 ▼1.27 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gallerya
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲124 | 13.97 ▼0.32 | 14.39 ▲12.72 | 36.66 ▼10.16 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.06 | 94.28 ▼5.14 | 42.35 ▼1.55 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.04 | 38.65 ▲3.02 | 35.21 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,541 ▲11 | 25.03 ▲1.83 | 601.02 ▼79.74 | 73.35 ▲17.94 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.30 ▲0.07 | 101.31 ▲3.65 | 43.88 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gallerya/templates/layout-grid.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Netzstrategen\\Gallerya\\has_image_size() in wp-content/plugins/gallerya/templates/layout-product-variation-slider.php:6
- > PHP Parse error
syntax error, unexpected '->' (T_OBJECT_OPERATOR) in wp-content/plugins/gallerya/src/GraphQL.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function Netzstrategen\\Gallerya\\apply_filters() in wp-content/plugins/gallerya/templates/layout-slider.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gallerya/templates/layout-grid.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function Netzstrategen\\Gallerya\\has_image_size() in wp-content/plugins/gallerya/templates/layout-grid-slider.php:5
- > PHP Notice
Undefined variable: images in wp-content/plugins/gallerya/templates/layout-grid.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function Netzstrategen\\Gallerya\\apply_filters() in wp-content/plugins/gallerya/templates/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: responsive gallery, image slider, image gallery, lightbox, gallery...
gallerya/plugin.php 92% from 13 tests
The primary PHP file in "Gallerya" version 3.2.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("gallerya.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin18,357 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 15,695 |
PHP | 12 | 153 | 408 | 842 |
JavaScript | 9 | 64 | 159 | 733 |
Sass | 2 | 97 | 7 | 523 |
CSS | 6 | 11 | 13 | 488 |
PO File | 1 | 31 | 31 | 76 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 44 | 100.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin