Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.01ms] Passed 4 tests
Analyzing server-side resources used by Bilych Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.50 ▲4.53 |
Dashboard /wp-admin | 3.37 ▲0.03 | 44.03 ▼13.81 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.42 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 79.59 ▼14.75 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 33.48 ▲1.86 |
Bilych Gallery /wp-admin/options-general.php?page=bilych-gallery-settings | 3.26 | 37.22 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
bilych_gallery_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Bilych Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲223 | 13.98 ▼0.68 | 15.32 ▲13.70 | 35.89 ▼7.62 |
Dashboard /wp-admin | 2,212 ▲60 | 5.84 ▲0.24 | 106.89 ▲9.27 | 36.83 ▼6.17 |
Posts /wp-admin/edit.php | 2,098 ▲12 | 2.02 ▼0.04 | 40.42 ▲2.53 | 35.10 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.06 ▼0.03 | 640.01 ▲24.82 | 59.86 ▼1.74 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▼0.02 | 96.32 ▼0.36 | 41.37 ▼3.07 |
Bilych Gallery /wp-admin/options-general.php?page=bilych-gallery-settings | 818 | 2.07 | 25.39 | 28.21 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 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 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bilych-gallery/admin/partials/bilych-gallery-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== bilych-gallery ===
)
bilych-gallery/bilych-gallery.php Passed 13 tests
This is the main PHP file of "Bilych Gallery" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
This plugin replace default Wordpress gallery.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected11,073 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 4,488 | 2,872 | 9,263 |
CSS | 4 | 269 | 76 | 1,552 |
PHP | 11 | 151 | 524 | 258 |
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 code | 0.10 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 0.27MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/default/slider_arrow_left.png | 0.46KB | 0.18KB | ▼ 60.21% |
public/images/default/button_fullscreen.png | 1.03KB | 0.95KB | ▼ 7.81% |
public/images/default/slider_bullets.png | 0.44KB | 0.35KB | ▼ 20.80% |
admin/partials/img/photopile.png | 77.10KB | 26.93KB | ▼ 65.07% |
public/images/button_fullscreen.png | 1.49KB | 1.09KB | ▼ 27.14% |