Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼32.95ms] Passed 4 tests
A check of server-side resources used by NextGEN Gallery Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 42.58 ▲1.83 |
Dashboard /wp-admin | 2.99 ▼0.31 | 21.56 ▼28.12 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 23.59 ▼24.19 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 22.00 ▼65.05 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 20.91 ▼14.42 |
Search Galleries /wp-admin/admin.php?page=ngg-search | 2.99 | 22.72 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NextGEN Gallery Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.53 ▼1.03 | 1.73 ▼0.19 | 44.12 ▼6.53 |
Dashboard /wp-admin | 2,221 ▲33 | 4.93 ▲0.06 | 100.93 ▼15.07 | 72.03 ▲27.75 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▲0.05 | 38.33 ▲2.32 | 34.57 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.18 ▲0.16 | 718.39 ▲40.54 | 59.62 ▲7.76 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.16 ▼0.03 | 108.55 ▲8.79 | 46.43 ▲3.79 |
Search Galleries /wp-admin/admin.php?page=ngg-search | 868 | 2.19 | 25.19 | 38.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Warning in wp-content/plugins/nextgen-gallery-search-galleries/ngg-search.php+39
Use of undefined constant wp_ngg_search - assumed 'wp_ngg_search' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ngg-search
- > Warning in wp-content/plugins/nextgen-gallery-search-galleries/ngg-search.php+39
Use of undefined constant wp_ngg_search - assumed 'wp_ngg_search' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ngg-search
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/nextgen-gallery): failed to open dir: No such file or directory
- > GET request to /wp-admin/admin.php?page=ngg-search
- > Notice in wp-content/plugins/nextgen-gallery-search-galleries/ngg-search.php+98
Undefined index: find
- > GET request to /wp-admin/admin.php?page=ngg-search
- > Notice in wp-content/plugins/nextgen-gallery-search-galleries/ngg-search.php+139
Undefined variable: string
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nextgen-gallery-search-galleries/ngg-search.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (NextGEN Gallery - Search Galleries page.) image missing
nextgen-gallery-search-galleries/ngg-search.php 85% from 13 tests
"NextGEN Gallery Search" version 2.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 241 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nextgen-gallery-search-galleries.php" instead of "ngg-search.php")
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
Everything looks great! No dangerous files found in this plugin119 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 54 | 119 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.44KB | 0.38KB | ▼ 13.90% |