Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/conditional-lightbox/conditional-lightbox.php+60
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼139.15ms] Passed 4 tests
This is a short check of server-side resources used by Conditional Lightbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 44.73 ▲15.55 |
Dashboard /wp-admin | 3.08 ▲0.02 | 55.12 ▼1.85 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 51.35 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 102.73 ▼559.06 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 42.70 ▲4.11 |
Conditional Lightbox /wp-admin/options-general.php?page=conditional-lightbox/conditional-lightbox.php | 2.99 | 30.58 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 1 new option
New WordPress options |
---|
coli_options |
Browser metrics Passed 4 tests
Checking browser requirements for Conditional Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,391 ▲795 | 16.23 ▲0.57 | 18.78 ▲8.62 | 52.28 ▲0.56 |
Dashboard /wp-admin | 2,975 ▲44 | 5.90 ▼0.16 | 181.75 ▲19.20 | 115.73 ▼4.38 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 71.35 ▼8.98 | 93.04 ▼11.09 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.77 ▲0.39 | 419.47 ▼44.76 | 118.89 ▲4.45 |
Media Library /wp-admin/upload.php | 1,812 ▲64 | 5.04 ▲0.01 | 171.07 ▲3.74 | 128.24 ▼3.78 |
Conditional Lightbox /wp-admin/options-general.php?page=conditional-lightbox/conditional-lightbox.php | 1,095 | 2.05 | 62.25 | 87.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/conditional-lightbox/conditional-lightbox.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
9 plugin tags: android, mobile, iphone, rwd, images...
conditional-lightbox/conditional-lightbox.php Passed 13 tests
The main PHP file in "Conditional Lightbox" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Use a lightbox only if the screen is big enough.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin483 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 51 | 87 | 229 |
CSS | 2 | 26 | 2 | 139 |
PHP | 1 | 35 | 73 | 83 |
HTML | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 9 | |
▷ Named functions | 9 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter-icon.png | 1.71KB | 1.64KB | ▼ 3.89% |
images/facebook-icon.png | 1.65KB | 1.61KB | ▼ 2.89% |