Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▲6.31ms] Passed 4 tests
An overview of server-side resources used by Lightbox with PhotoSwipe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 47.82 ▲7.98 |
Dashboard /wp-admin | 3.74 ▲0.39 | 55.51 ▼5.09 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 67.56 ▲17.46 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 99.07 ▲4.89 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 51.38 ▲19.34 |
Lightbox with PhotoSwipe /wp-admin/options-general.php?page=lightbox-photoswipe | 3.61 | 47.78 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
lightbox_photoswipe_db_version |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Lightbox with PhotoSwipe: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲53 | 14.26 ▼0.04 | 2.44 ▲0.65 | 40.55 ▼3.78 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▲0.04 | 92.73 ▼2.79 | 42.20 ▼3.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.04 | 39.77 ▲0.84 | 36.96 ▲3.22 |
Add New Post /wp-admin/post-new.php | 6,227 ▲4,688 | 25.95 ▲2.87 | 820.23 ▲209.20 | 52.74 ▲1.14 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▲0.01 | 95.51 ▼1.29 | 41.06 ▼0.10 |
Lightbox with PhotoSwipe /wp-admin/options-general.php?page=lightbox-photoswipe | 1,747 | 1.66 | 29.46 | 26.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lightbox-photoswipe/templates/options-script.inc.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/options-tab2.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/options.inc.php:12
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/lightbox-photoswipe/vendor/matthiasmullie/path-converter/src/Converter.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/lightbox-photoswipe/vendor/matthiasmullie/minify/src/CSS.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/frontend.inc.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/options-tab5.inc.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/options-tab3.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/options-navigation.inc.php:1
- > PHP Fatal error
Namespace declaration statement has to be the very first statement or after any declare call in the script in wp-content/plugins/lightbox-photoswipe/build.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lightbox-photoswipe/templates/options-tab7.inc.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #7 (Example for the use in the frontend) image required
lightbox-photoswipe/lightbox-photoswipe.php Passed 13 tests
Analyzing the main PHP file in "Lightbox with PhotoSwipe" version 5.1.0
24 characters long description:
Lightbox with PhotoSwipe
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
There were no executable files found in this plugin22,260 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 3,739 | 3,918 | 12,859 |
PHP | 39 | 680 | 1,504 | 3,412 |
CSS | 13 | 513 | 401 | 2,506 |
PO File | 4 | 524 | 657 | 1,782 |
TypeScript | 34 | 0 | 2,029 | 1,232 |
JSON | 4 | 0 | 0 | 213 |
Markdown | 4 | 53 | 0 | 112 |
YAML | 3 | 13 | 1 | 87 |
SVG | 9 | 0 | 2 | 41 |
Dockerfile | 1 | 2 | 0 | 12 |
make | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 3 | 17.65% |
▷ Concrete classes | 14 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 15 | 10.56% |
▷ Public methods | 95 | 66.90% |
▷ Protected methods | 43 | 30.28% |
▷ Private methods | 4 | 2.82% |
Functions | 14 | |
▷ Named functions | 1 | 7.14% |
▷ Anonymous functions | 13 | 92.86% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/lib/skins/classic-solid/controls.png | 0.53KB | 0.72KB | 0.00% |
src/lib/skins/default-solid/controls.png | 1.33KB | 0.86KB | ▼ 35.07% |
src/lib/skins/default/controls.png | 1.33KB | 0.86KB | ▼ 35.07% |
src/lib/skins/classic/controls.png | 0.53KB | 0.72KB | 0.00% |