Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.90MB] [CPU: ▼50.65ms] Passed 4 tests
Server-side resources used by FlowGallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.01 ▼34.34 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.04 ▼44.76 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.67 ▼41.18 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.51 ▼82.31 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.13 ▼31.51 |
Server storage [IO: ▲0.94MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
FlowGallery: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,158 ▲423 | 13.98 ▼0.67 | 11.18 ▲9.49 | 44.96 ▲5.47 |
Dashboard /wp-admin | 2,235 ▲52 | 5.96 ▲1.03 | 122.63 ▼52.54 | 43.53 ▲1.38 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.44 ▲0.44 | 40.42 ▲0.40 | 35.12 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 17.85 ▼0.19 | 611.34 ▲15.62 | 48.60 ▼1.03 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.26 ▼0.06 | 98.30 ▼1.77 | 43.58 ▼3.30 |
FlowGallery /wp-admin/flowgallery-options.php | 26 | 0.44 | 0.12 | 13.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% 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 0% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/flowgallery/thumbnail.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flowgallery/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flowgallery/options.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/flowgallery-options.php
- > Network (severe)
wp-admin/flowgallery-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Gallery in action) image missing
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== flowgallery ===
)
flowgallery/FlowGallery.php 92% from 13 tests
Analyzing the main PHP file in "FlowGallery" version 1.2
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("flowgallery.php" instead of "FlowGallery.php")
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
Success! There were no dangerous files found in this plugin2,414 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 526 | 269 | 1,830 |
CSS | 3 | 62 | 4 | 360 |
PHP | 3 | 43 | 16 | 224 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.78MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancybox_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |
fancybox/fancybox_sprite.png | 1.33KB | 1.42KB | 0.00% |
fancybox/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |
screenshot-1.png | 784.01KB | 211.23KB | ▼ 73.06% |
fancybox/helpers/fancybox_buttons.png | 1.05KB | 1.10KB | 0.00% |