Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.54ms] Passed 4 tests
Server-side resources used by Responsive Photo Gallery & Lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.81 ▼0.25 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.65 ▲0.43 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.74 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.78 ▼14.10 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.94 ▲0.40 |
Add New Gallery /wp-admin/post-new.php?post_type=mwarglplug | 3.48 | 49.60 |
All Galleries /wp-admin/admin.php?page=mwa_rgl_plug | 3.23 | 31.01 |
Server storage [IO: ▲8.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Responsive Photo Gallery & Lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲131 | 14.07 ▼0.77 | 4.82 ▲3.18 | 41.66 ▲0.22 |
Dashboard /wp-admin | 2,250 ▲47 | 5.86 ▲0.03 | 99.23 ▲4.22 | 62.98 ▲21.14 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.03 ▼0.02 | 34.74 ▼4.34 | 32.54 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,552 ▲32 | 23.19 ▼0.18 | 711.07 ▲53.84 | 53.57 ▲1.80 |
Media Library /wp-admin/upload.php | 1,432 ▲47 | 4.12 ▼0.11 | 96.00 ▼8.20 | 77.24 ▲29.75 |
Add New Gallery /wp-admin/post-new.php?post_type=mwarglplug | 3,510 | 6.16 | 165.66 | 164.71 |
All Galleries /wp-admin/admin.php?page=mwa_rgl_plug | 1,767 | 2.76 | 36.33 | 34.65 |
Uninstaller [IO: ▲0.00MB] [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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/responsive-photo-gallery-lightbox/responsive-gallery-lightbox.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/responsive-photo-gallery-lightbox/admin/inc/rgl_preview_gallery_html.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 80% 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
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
responsive-photo-gallery-lightbox/responsive-gallery-lightbox.php 62% from 13 tests
The principal PHP file in "Responsive Photo Gallery & Lightbox" v. 0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.2" instead of "7.2")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.2")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: The principal plugin file should be the same as the plugin slug ("responsive-photo-gallery-lightbox.php" instead of "responsive-gallery-lightbox.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected38,720 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 1,579 | 109 | 14,770 |
SVG | 7 | 63 | 15 | 11,355 |
JavaScript | 13 | 2,562 | 1,975 | 10,899 |
PHP | 17 | 170 | 95 | 1,433 |
PO File | 1 | 115 | 117 | 263 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 37 | |
▷ Static methods | 26 | 70.27% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.88MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/g2.png | 1,425.71KB | 362.36KB | ▼ 74.58% |
assets/css/nav-icon.png | 1.48KB | 1.35KB | ▼ 8.59% |
assets/images/g1.PNG | 196.72KB | 41.21KB | ▼ 79.05% |
assets/images/Close-icon-new.png | 13.20KB | 9.46KB | ▼ 28.33% |
assets/images/respgallogo.png | 1.09KB | 0.94KB | ▼ 13.92% |