Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.88ms] Passed 4 tests
Server-side resources used by Le Bang gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.50 ▼2.94 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.34 ▼0.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.55 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.97 ▼10.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.62 ▼0.38 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Le Bang gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲40 | 13.23 ▼1.16 | 1.65 ▼0.25 | 43.24 ▲0.14 |
Dashboard /wp-admin | 2,206 ▲21 | 5.83 ▼0.08 | 103.15 ▲1.57 | 39.81 ▼2.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.01 | 36.44 ▲1.54 | 35.40 ▲2.86 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.33 ▲0.28 | 618.79 ▼56.92 | 60.37 ▲4.50 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.03 | 95.05 ▼15.57 | 39.55 ▼7.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/le-bang-gallery/lebang-gallery.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #2 in le-bang-gallery/assets to your readme.txt
le-bang-gallery/lebang-gallery.php 92% from 13 tests
The main PHP script in "Le Bang gallery" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("le-bang-gallery.php" instead of "lebang-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin226 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 21 | 6 | 89 |
SVG | 7 | 0 | 0 | 81 |
PHP | 1 | 9 | 14 | 29 |
CSS | 2 | 1 | 1 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/play-pause.png | 0.42KB | 0.71KB | 0.00% |
img/error.png | 1.02KB | 1.11KB | 0.00% |
img/next.png | 0.16KB | 0.26KB | 0.00% |
img/video-play.png | 0.97KB | 1.25KB | 0.00% |
img/close.png | 0.16KB | 0.19KB | 0.00% |