Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼9.80ms] Passed 4 tests
Server-side resources used by Fancy Lightbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.19 ▼3.14 |
Dashboard /wp-admin | 3.32 ▼0.03 | 39.97 ▼22.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.76 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 74.84 ▼13.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.67 ▲1.65 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fancy Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲213 | 13.45 ▼1.15 | 9.83 ▲8.05 | 37.16 ▼9.97 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.04 | 99.82 ▲14.14 | 42.24 ▲4.53 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.02 | 34.92 ▼2.14 | 33.24 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.21 ▲4.80 | 670.40 ▲58.17 | 52.78 ▼15.37 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.28 ▲0.06 | 101.42 ▲3.45 | 41.63 ▲2.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 output text when accessed directly:
- > /wp-content/plugins/fancy-lightbox/fancy-lightbox.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 35 tag instead of maximum 10
fancy-lightbox/fancy-lightbox.php Passed 13 tests
"Fancy Lightbox" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
139 characters long description:
Add fancy lightbox easily, responsive lightbox and easy to use, without options and without complexity, compatible with all major browsers.
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
There were no executable files found in this plugin1,206 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 294 | 36 | 860 |
CSS | 1 | 51 | 17 | 317 |
PHP | 2 | 22 | 22 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/fancy_close.png | 1.48KB | 1.73KB | 0.00% |
css/fancy_loading.png | 9.96KB | 6.30KB | ▼ 36.67% |
css/fancy_shadow_n.png | 0.10KB | 0.19KB | 0.00% |
css/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |
css/fancy_shadow_w.png | 0.10KB | 0.18KB | 0.00% |