Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.07ms] Passed 4 tests
This is a short check of server-side resources used by Chroma Lightbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.98 ▲3.26 |
Dashboard /wp-admin | 3.42 ▲0.07 | 47.55 ▼15.53 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.79 ▲0.02 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.35 ▼20.04 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 41.89 ▲5.90 |
Chroma Lightbox /wp-admin/options-general.php?page=chroma_lightbox_settings | 3.35 | 40.20 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
chroma_lightbox |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Chroma Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲221 | 13.52 ▼0.75 | 12.06 ▲10.13 | 38.47 ▼4.94 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.04 | 90.36 ▲1.91 | 39.66 ▼1.88 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 38.47 ▲1.44 | 36.06 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.18 ▲0.08 | 665.66 ▼12.49 | 61.22 ▼2.59 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.26 ▲0.07 | 98.35 ▼5.41 | 45.18 ▼5.18 |
Chroma Lightbox /wp-admin/options-general.php?page=chroma_lightbox_settings | 1,500 | 3.68 | 80.41 | 37.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: image load, gallery view, dynamic, lightbox, image view...
chroma-lightbox/chroma_lightbox.php 85% from 13 tests
"Chroma Lightbox" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chroma-lightbox.php" instead of "chroma_lightbox.php")
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
Everything looks great! No dangerous files found in this plugin1,460 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 4 | 76 | 32 | 471 |
JavaScript | 4 | 176 | 27 | 469 |
PHP | 9 | 174 | 145 | 413 |
CSS | 2 | 1 | 0 | 107 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 4 | |
▷ Named functions | 4 | 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 |
public/images/slideshow-arrows.png | 1.46KB | 1.53KB | 0.00% |
public/images/spinner.png | 1.14KB | 1.20KB | 0.00% |