Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.30ms] Passed 4 tests
A check of server-side resources used by Simplelightbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 49.61 ▲12.28 |
Dashboard /wp-admin | 3.51 ▲0.20 | 59.40 ▲12.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 61.25 ▲10.87 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 96.98 ▼3.59 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 51.05 ▼28.52 |
Simplelightbox /wp-admin/themes.php?page=simplelightbox | 3.40 | 45.53 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simplelightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.73 ▼1.04 | 3.08 ▲0.77 | 38.72 ▼5.31 |
Dashboard /wp-admin | 2,219 ▲31 | 4.91 ▲0.05 | 114.13 ▼0.43 | 41.73 ▼1.40 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.06 ▲0.05 | 40.07 ▼2.36 | 33.91 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,523 ▼5 | 17.47 ▼5.86 | 604.79 ▼78.76 | 48.23 ▼23.37 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.25 ▲0.02 | 95.76 ▼2.75 | 43.15 ▲0.73 |
Simplelightbox /wp-admin/themes.php?page=simplelightbox | 1,656 | 1.98 | 34.03 | 31.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplelightbox/simplelightbox.php:564
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Admin page where you setup the plugin)
simplelightbox/simplelightbox.php Passed 13 tests
The main file in "Simplelightbox" v. 2.14.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Touch-friendly image lightbox for mobile and desktop with no need of jQuery for Wordpress
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
Everything looks great! No dangerous files found in this plugin8,877 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 708 | 605 | 7,171 |
CSS | 6 | 18 | 32 | 693 |
PHP | 1 | 37 | 36 | 491 |
Sass | 2 | 26 | 0 | 424 |
Markdown | 1 | 7 | 0 | 58 |
JSON | 1 | 0 | 0 | 34 |
Ruby | 1 | 6 | 13 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
23 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
resources/img/custom_background.png | 1.87KB | 2.12KB | 0.00% |
resources/img/custom_hsb_s.png | 1.14KB | 0.89KB | ▼ 21.75% |
resources/img/colorpicker_hsb_h.png | 0.99KB | 0.77KB | ▼ 21.94% |
resources/img/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |