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
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.92ms] Passed 4 tests
Server-side resources used by Simple Photoswipe
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.43 ▲1.65 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.12 ▼17.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.38 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.82 ▼9.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.25 ▲4.41 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
photoswipe_options |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Photoswipe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 14.46 ▼0.31 | 2.06 ▲0.29 | 42.28 ▼3.11 |
Dashboard /wp-admin | 2,208 ▲20 | 5.80 ▲0.91 | 97.54 ▼18.64 | 36.63 ▼8.05 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.02 ▲0.02 | 36.16 ▼2.80 | 33.24 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.50 ▲0.24 | 686.31 ▼0.04 | 51.03 ▼0.38 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.27 ▲0.06 | 93.93 ▼9.66 | 42.50 ▼2.29 |
Simple PhotoSwipe /wp-admin/admin-options.php | 26 | 0.44 | 0.13 | 13.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- photoswipe_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% 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 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-photoswipe/simple-photoswipe.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-photoswipe/custom-gallery.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-photoswipe/photoswipe/photoswipe-ui.php:839
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-photoswipe/photoswipe/photoswipe-template.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-photoswipe/admin-options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-photoswipe/photoswipe/photoswipe-init.php:208
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin-options.php
- > Network (severe)
wp-admin/admin-options.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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (Built in Wordpress Gallery with Masonry CSS Styles (noJS)), #2 (Photoswipe in all it’s glory), #3 (Simple Photoswipe Admin Settings Section), #4 (Disable proportional thumbnails)
simple-photoswipe/simple-photoswipe.php Passed 13 tests
"Simple Photoswipe" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
A simple plugin for galleries using PhotoSwipe from Dmitry Semenov.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,571 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 265 | 100 | 1,088 |
CSS | 3 | 82 | 5 | 466 |
Markdown | 1 | 9 | 0 | 15 |
JavaScript | 1 | 0 | 3 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 3 | |
▷ Static methods | 3 | 100.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 182.87KB | 62.45KB | ▼ 65.85% |
lib/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |