Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.82ms] Passed 4 tests
Server-side resources used by Simple Galleria for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.92 ▲0.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.67 ▼1.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.94 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.25 ▼6.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.67 ▲1.98 |
Simple Galleria /wp-admin/options-general.php?page=simple-galleria-for-wordpress | 3.25 | 30.16 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
sgwf-options |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Galleria for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲322 | 13.80 ▼0.79 | 10.59 ▲8.89 | 39.63 ▼3.62 |
Dashboard /wp-admin | 2,255 ▲75 | 5.77 ▲0.26 | 84.87 ▼9.96 | 37.50 ▼2.01 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.28 ▲0.26 | 41.54 ▲0.68 | 34.76 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,565 ▲34 | 23.15 ▲0.11 | 602.12 ▼37.16 | 47.44 ▼7.16 |
Media Library /wp-admin/upload.php | 1,466 ▲63 | 4.36 ▲0.09 | 99.54 ▼1.74 | 42.40 ▼5.10 |
Simple Galleria /wp-admin/options-general.php?page=simple-galleria-for-wordpress | 995 | 1.79 | 28.61 | 29.38 |
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 were found after uninstall: 7 options
- sgwf-options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-galleria-for-wordpress/simple-galleria-for-wordpress.php:12
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/simple-galleria-for-wordpress/views/admin/settings.tpl.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: jquery, image, native, slideshow, photo...
simple-galleria-for-wordpress/simple-galleria-for-wordpress.php 92% from 13 tests
The primary PHP file in "Simple Galleria for WordPress" version 2.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,507 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 43 | 214 | 307 | 1,275 |
Markdown | 1 | 204 | 0 | 400 |
PHP | 6 | 83 | 90 | 316 |
CSS | 2 | 7 | 12 | 250 |
HTML | 1 | 13 | 3 | 108 |
PO File | 2 | 29 | 28 | 88 |
JSON | 2 | 0 | 0 | 70 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 8 | 66.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ressources/colorbox/images/controls.png | 0.49KB | 0.57KB | 0.00% |
ressources/galleria/themes/classic/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |