Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼281.15ms] Passed 4 tests
An overview of server-side resources used by WF Magnific Lightbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.24 ▲9.94 |
Dashboard /wp-admin | 3.08 ▲0.02 | 35.78 ▼9.56 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 40.81 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 93.61 ▼1,102.34 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 27.16 ▼12.12 |
WF Magnific Lightbox /wp-admin/options-general.php?page=wf-magnific-lightbox | 2.99 | 28.19 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WF Magnific Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,798 ▲192 | 16.26 ▲0.77 | 13.36 ▲4.55 | 49.35 ▲2.07 |
Dashboard /wp-admin | 2,935 ▲82 | 5.87 ▲0.02 | 134.60 ▲2.26 | 98.18 ▲1.61 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.69 ▲0.00 | 63.95 ▼5.50 | 87.10 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,856 ▲205 | 19.12 ▲1.90 | 374.64 ▲16.10 | 115.04 ▲5.18 |
Media Library /wp-admin/upload.php | 1,774 ▼1 | 4.99 ▼0.02 | 152.15 ▼4.21 | 108.91 ▼6.76 |
WF Magnific Lightbox /wp-admin/options-general.php?page=wf-magnific-lightbox | 1,042 | 2.09 | 54.05 | 82.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% 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 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wf-magnific-lightbox/wf-magnific-lightbox.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wf-magnific-lightbox/includes/wf_mlightbox_shortcode.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wf-magnific-lightbox/includes/wf_mlightbox_settings.php:212
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (WF Magnific Lightbox supports Title, Description and Copyright output), #2 (Uses existing copyright informations from EXIF-data already included in your photos), #3 (Multi-language Support for polylang-plugin from Chouby and the WPML-plugin from wpml.org), #4 (Truly responsive lightbox with css bases resizing)
wf-magnific-lightbox/wf-magnific-lightbox.php Passed 13 tests
This is the main PHP file of "WF Magnific Lightbox" version 0.9.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
WF Magnific Lightbox is the `wunderfarm-way` to show your images with wordpress in a truly responsive lightbox.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,094 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 66 | 6 | 425 |
PHP | 4 | 68 | 116 | 340 |
JavaScript | 2 | 25 | 10 | 195 |
PO File | 2 | 34 | 38 | 134 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 0% from 1 test
Image compression 0% from 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 2.61MB with 1.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-512x512.png | 23.36KB | 11.98KB | ▼ 48.73% |
screenshot-4.png | 273.25KB | 92.17KB | ▼ 66.27% |
screenshot-1.png | 987.58KB | 301.35KB | ▼ 69.49% |
screenshot-2.png | 492.78KB | 177.47KB | ▼ 63.99% |
assets/banner-772x250.png | 9.83KB | 5.97KB | ▼ 39.25% |