Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.94MB] [CPU: ▼38.99ms] Passed 4 tests
A check of server-side resources used by Your Lightbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 26.18 ▼16.31 |
Dashboard /wp-admin | 3.00 ▼0.30 | 24.43 ▼31.10 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 23.37 ▼29.79 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 22.76 ▼78.75 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 25.15 ▼13.27 |
Configure Lightbox /wp-admin/edit.php?page=yl | 3.00 | 25.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Your Lightbox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲285 | 13.57 ▼0.78 | 15.74 ▲14.19 | 41.40 ▼1.82 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.06 | 84.89 ▼5.20 | 38.22 ▼2.91 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.03 ▲0.06 | 34.67 ▼6.44 | 31.95 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.04 ▲4.90 | 658.21 ▲15.46 | 53.52 ▼7.47 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.19 ▲0.05 | 97.36 ▼3.43 | 42.68 ▼6.66 |
Configure Lightbox /wp-admin/edit.php?page=yl | 861 | 1.96 | 27.35 | 27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=yl
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+11
Undefined index: content
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+12
Undefined index: width
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+13
Undefined index: height
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+14
Undefined index: title
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+15
Undefined index: ytmslb
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+16
Undefined index: checkform
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+17
Undefined index: ytmslb_like
- > GET request to /wp-admin/edit.php?page=yl
- > Notice in wp-content/plugins/your-lightbox/settings/lbsettings.php+18
Undefined index: like_url
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
Almost there! Just fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: like_url in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 18
- > PHP Notice
Undefined index: ytmslb_like in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/your-lightbox/yourlightbox.php:22
- > PHP Notice
Undefined index: ytmslb in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/your-lightbox/settings/lbsettings.php:85
- > PHP Notice
Undefined index: title in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 14
- > PHP Notice
Undefined index: width in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 12
- > PHP Notice
Undefined index: content in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 11
- > PHP Notice
Undefined index: checkform in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 16
- > PHP Notice
Undefined index: height in wp-content/plugins/your-lightbox/settings/lbsettings.php on line 13
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: like, message, lightbox, website
your-lightbox/yourlightbox.php 92% from 13 tests
The main PHP file in "Your Lightbox" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("your-lightbox.php" instead of "yourlightbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin920 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 153 | 69 | 720 |
PHP | 2 | 152 | 15 | 136 |
CSS | 1 | 4 | 18 | 64 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
includes/images/ie6/borderTopLeft.png | 0.21KB | 0.20KB | ▼ 4.63% |
includes/images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |
includes/images/ie6/borderMiddleLeft.png | 0.11KB | 0.10KB | ▼ 7.41% |
includes/images/ie6/borderTopRight.png | 0.21KB | 0.20KB | ▼ 2.34% |