Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▲0.53ms] 75% from 4 tests
A check of server-side resources used by Photo Gallery - Responsive Photo Gallery, Image Gallery, Portfolio Gallery, Logo Gallery And Team Gallery
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 647.45ms on /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 43.26 ▲4.94 |
Dashboard /wp-admin | 3.88 ▲0.53 | 51.31 ▼4.19 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 50.18 ▲4.47 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 94.84 ▼3.11 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 39.14 ▲6.05 |
Add New Gallery /wp-admin/post-new.php?post_type=_light_image_gallery | 3.97 | 52.10 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.96 | 37.05 |
Docs /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-doc-page | 3.72 | 32.98 |
Upgrade Premium /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-upgrade-premium | 3.72 | 31.91 |
Our Themes /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-themes | 3.71 | 34.16 |
Our Plugins /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-plugins | 3.99 | 647.45 |
All Photo Gallery /wp-admin/edit.php?post_type=_light_image_gallery | 3.74 | 35.93 |
Server storage [IO: ▲4.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photo Gallery - Responsive Photo Gallery, Image Gallery, Portfolio Gallery, Logo Gallery And Team Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲216 | 13.85 ▼0.74 | 8.54 ▲6.81 | 45.51 ▲5.47 |
Dashboard /wp-admin | 2,276 ▲95 | 5.64 ▼0.02 | 96.30 ▼0.43 | 46.46 ▲3.77 |
Posts /wp-admin/edit.php | 2,190 ▲90 | 2.06 ▲0.10 | 37.15 ▲1.39 | 40.45 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,604 ▲76 | 18.33 ▼4.92 | 586.59 ▼73.51 | 71.96 ▲21.44 |
Media Library /wp-admin/upload.php | 1,489 ▲92 | 4.25 ▲0.10 | 94.07 ▼9.91 | 45.31 ▼1.17 |
Add New Gallery /wp-admin/post-new.php?post_type=_light_image_gallery | 2,401 | 3.61 | 65.83 | 95.18 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,088 | 2.05 | 22.48 | 29.91 |
Docs /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-doc-page | 939 | 2.07 | 25.41 | 35.26 |
Upgrade Premium /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-upgrade-premium | 1,011 | 2.06 | 27.65 | 35.23 |
Our Themes /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-themes | 1,032 | 2.44 | 27.06 | 101.50 |
Our Plugins /wp-admin/edit.php?post_type=_light_image_gallery&page=npg-plugins | 3,976 | 1.34 | 29.96 | 107.35 |
All Photo Gallery /wp-admin/edit.php?post_type=_light_image_gallery | 1,171 | 1.96 | 34.34 | 35.41 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=_light_image_gallery
- > Notice in wp-content/plugins/new-photo-gallery/new-photo-gallery.php+95
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=_light_image_gallery
- > Notice in wp-content/plugins/new-photo-gallery/new-photo-gallery.php+95
Trying to access array offset on value of type null
SRP 50% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/new-photo-gallery/our-plugins/awplife-plugins.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/new-photo-gallery/our-themes/awplife-themes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/new-photo-gallery/docs.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/new-photo-gallery/class-tgm-plugin-activation.php:2129
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: image gallery, album gallery, responsive gallery, photo gallery, portfolio gallery
new-photo-gallery/new-photo-gallery.php Passed 13 tests
This is the main PHP file of "Photo Gallery - Responsive Photo Gallery, Image Gallery, Portfolio Gallery, Logo Gallery And Team Gallery" version 1.3.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
new photo gallery plugin with lightbox preview for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin30,743 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 2,962 | 6,930 | 16,505 |
JavaScript | 12 | 2,358 | 1,647 | 8,809 |
PHP | 9 | 596 | 1,719 | 3,339 |
SVG | 4 | 0 | 0 | 1,675 |
PO File | 2 | 290 | 448 | 415 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 5 | 4.17% |
▷ Public methods | 95 | 79.17% |
▷ Protected methods | 25 | 20.83% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.10MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
our-themes/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |
img/pricing-table.png | 49.13KB | 19.57KB | ▼ 60.17% |
css/new-slide.png | 2.54KB | 1.19KB | ▼ 53.21% |
lightbox/light-gallery/img/video-play.png | 4.42KB | 1.05KB | ▼ 76.27% |
lightbox/light-gallery/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |