Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲1.88ms] Passed 4 tests
Analyzing server-side resources used by Simple lightGallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 47.30 ▲5.84 |
Dashboard /wp-admin | 3.40 ▲0.10 | 53.18 ▲0.16 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 77.26 ▲22.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 95.02 ▼2.35 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 38.41 ▲3.86 |
Simple lightGallery /wp-admin/options-general.php?page=simple_lightgallery | 3.29 | 38.09 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple lightGallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲18 | 13.24 ▼0.44 | 1.92 ▲0.19 | 44.18 ▼3.27 |
Dashboard /wp-admin | 2,210 ▲4 | 4.92 ▼0.95 | 109.84 ▲8.85 | 38.45 ▼3.20 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.15 ▲0.16 | 41.67 ▲4.28 | 35.23 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 18.07 ▼0.12 | 618.59 ▼19.43 | 53.79 ▲2.38 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.27 ▲0.08 | 103.35 ▲3.02 | 42.47 ▼1.40 |
Simple lightGallery /wp-admin/options-general.php?page=simple_lightgallery | 1,185 | 2.38 | 41.06 | 30.34 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-lightgallery/includes/class-slg-front.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-lightgallery/includes/class-slg-admin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in simple-lightgallery/assets to your readme.txt
simple-lightgallery/simple-lightgallery.php Passed 13 tests
The main PHP script in "Simple lightGallery" version 1.5.2 is automatically included on every request by WordPress
64 characters long description:
An integration of lightGallery javascript v1 and v2 to 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 plugin15,604 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 46 | 288 | 1,883 | 11,207 |
CSS | 20 | 646 | 4 | 3,887 |
PHP | 3 | 82 | 61 | 405 |
SVG | 2 | 0 | 0 | 105 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lightgallery/v1/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
assets/lightgallery/v1/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |
assets/lightgallery/v1/img/video-play.png | 4.42KB | 1.05KB | ▼ 76.27% |