Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼1.51ms] Passed 4 tests
Analyzing server-side resources used by One Click Lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.06 | 31.11 ▼10.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.14 ▼0.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.47 ▲3.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.96 ▲3.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.98 ▲1.54 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for One Click Lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.58 ▼0.79 | 2.97 ▲1.24 | 37.91 ▼9.21 |
Dashboard /wp-admin | 2,225 ▲34 | 5.88 ▲0.97 | 97.32 ▼3.36 | 38.84 ▼4.41 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.06 ▼0.13 | 40.37 ▲6.25 | 35.04 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 18.61 ▼4.65 | 589.51 ▼98.98 | 52.87 ▼15.69 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.19 ▲0.04 | 94.47 ▼7.65 | 43.76 ▼0.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/one-click-lightbox/one-click-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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in one-click-lightbox/assets to your readme.txt
one-click-lightbox/one-click-lightbox.php Passed 13 tests
Analyzing the main PHP file in "One Click Lightbox" version 1.1.2
28 characters long description:
Adds a lightbox to your site
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 plugin273 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 97 | 170 |
PO File | 1 | 32 | 65 | 101 |
CSS | 1 | 0 | 2 | 1 |
JavaScript | 1 | 0 | 2 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prev.png | 1.33KB | 1.59KB | 0.00% |
img/close.png | 0.27KB | 0.29KB | 0.00% |
img/next.png | 1.32KB | 1.58KB | 0.00% |