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.07MB] [CPU: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by Photoswipe Masonry Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.03 ▲1.99 |
Dashboard /wp-admin | 3.39 ▲0.04 | 51.41 ▼7.98 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.02 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.87 ▼5.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.21 ▼3.64 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
photoswipe_options |
Browser metrics Passed 4 tests
Checking browser requirements for Photoswipe Masonry Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲217 | 13.47 ▼0.77 | 10.62 ▲8.78 | 41.85 ▼1.12 |
Dashboard /wp-admin | 2,202 ▲22 | 5.47 ▼0.16 | 83.32 ▼13.98 | 39.53 ▼7.26 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▲0.02 | 36.69 ▲1.91 | 31.80 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.45 ▼1.77 | 687.21 ▲68.22 | 62.60 ▲2.98 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.30 ▲0.14 | 101.64 ▲0.80 | 42.35 ▲2.55 |
PhotoSwipe /wp-admin/photoswipe-masonry.php | 26 | 0.41 | 0.08 | 13.54 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- photoswipe_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/photoswipe-masonry/photoswipe-masonry-footer-html.php
- > /wp-content/plugins/photoswipe-masonry/photoswipe-masonry.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/photoswipe-masonry.php
- > Network (severe)
wp-admin/photoswipe-masonry.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Screenshot Default gallery layout), #2 (Screenshot Popup layout)
photoswipe-masonry/photoswipe-masonry.php Passed 13 tests
This is the main PHP file of "Photoswipe Masonry Gallery" version 1.2.26, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
This is a image gallery plugin for WordPress built using PhotoSwipe from Dmitry Semenov.
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
Success! There were no dangerous files found in this plugin4,751 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 982 | 427 | 3,445 |
CSS | 5 | 184 | 145 | 930 |
PHP | 2 | 126 | 82 | 374 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of 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.25 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
photoswipe-dist/white-skin/skin.png | 15.02KB | 0.72KB | ▼ 95.22% |
photoswipe-dist/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |