Benchmarks
Plugin footprint 65% 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: ▼1.88MB] [CPU: ▼48.96ms] Passed 4 tests
This is a short check of server-side resources used by NextGEN Gallery Optimizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 6.34 ▼35.98 |
Dashboard /wp-admin | 2.13 ▼1.18 | 6.40 ▼40.08 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.82 ▼39.18 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.85 ▼80.61 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.41 ▼25.64 |
/wp-admin/options-general.php?page=nextgen-optimizer-basic-fancybox-interface | 2.13 | 5.84 |
NextGEN Gallery Optimizer Basic /wp-admin/options-general.php?page=nextgen-gallery-optimizer-basic-settings | 2.13 | 6.51 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
nextgen_gallery_optimizer_basic_settings |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NextGEN Gallery Optimizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.26 ▼0.09 | 1.90 ▲0.17 | 45.33 ▼3.19 |
Dashboard /wp-admin | 2,205 ▲25 | 5.63 ▼0.03 | 81.12 ▼20.54 | 38.38 ▼3.58 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▼0.00 | 33.09 ▼3.35 | 33.80 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.32 ▲0.09 | 631.67 ▼53.97 | 53.62 ▼15.34 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.03 | 95.16 ▼32.04 | 43.62 ▼1.15 |
/wp-admin/options-general.php?page=nextgen-optimizer-basic-fancybox-interface | 567 | 2.01 | 26.92 | 3.93 |
NextGEN Gallery Optimizer Basic /wp-admin/options-general.php?page=nextgen-gallery-optimizer-basic-settings | 1,024 | 1.88 | 28.08 | 43.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/nextgen-gallery): failed to open dir: No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=nextgen-gallery-optimizer-basic-settings
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/nextgen-gallery): failed to open dir: No such file or directory
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=nextgen-gallery-optimizer-basic-settings
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/nextcellent-gallery-nextgen-legacy): failed to open dir: No such file or directory
SRP 50% 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
Please take a closer look at the following
- 19× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/class-nggobasic-validation.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/view/nggobasic-settings-view.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/install/class-nggobasic-fancybox-installer-nextgen-v1.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/class-nggobasic-settings-page.php
- > /wp-content/plugins/nextgen-gallery-optimizer/nextgen-gallery-optimizer.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/class-nggobasic-admin-cleanup.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/view/nggobasic-dfsi-demo-view.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/class-nggobasic-dfsi-demo.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/class-nggobasic-regex.php
- > /wp-content/plugins/nextgen-gallery-optimizer/admin/assets/install/class-nggobasic-lightbox-installer-nextgen-v2.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=nextgen-optimizer-basic-fancybox-interface
- > Javascript (severe) in unknown
/wp-content/plugins/nextgen-gallery-optimizer/admin/assets/js/nggobasic-dfsi-demo.min.js?ver=2.1.5 66:114 Uncaught TypeError: Cannot read properties of undefined (reading 'pluginDirUrl')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
nextgen-gallery-optimizer/nextgen-gallery-optimizer.php 92% from 13 tests
The primary PHP file in "NextGEN Gallery Optimizer" version 2.1.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 1973 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,493 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 1,780 | 4,804 | 2,671 |
JavaScript | 10 | 631 | 999 | 1,420 |
CSS | 3 | 78 | 179 | 402 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 30.47 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 196 | |
▷ Static methods | 17 | 8.67% |
▷ Public methods | 196 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancy_close.png | 1.48KB | 1.73KB | 0.00% |
fancybox/fancy_shadow_e.png | 0.10KB | 0.18KB | 0.00% |
fancybox/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
fancybox/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |
fancybox/fancy_title_left.png | 0.49KB | 0.82KB | 0.00% |