Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼3.14ms] Passed 4 tests
A check of server-side resources used by NGG Smart Image Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 39.18 ▼2.69 |
Dashboard /wp-admin | 3.74 ▲0.40 | 54.38 ▼8.42 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 54.36 ▲10.58 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 95.35 ▼5.28 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 37.20 ▲3.84 |
NGG Smart Image Search /wp-admin/options-general.php?page=ngg_smart_image_search | 3.61 | 31.81 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_hrsis_widget |
can_compress_scripts |
theysaidso_admin_options |
hr_SIS_settings |
Browser metrics Passed 4 tests
NGG Smart Image Search: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲134 | 13.56 ▼1.05 | 5.00 ▲2.77 | 38.21 ▼4.83 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.94 | 105.56 ▼5.13 | 41.45 ▼6.08 |
Posts /wp-admin/edit.php | 2,096 ▲25 | 2.04 ▲0.03 | 39.52 ▲2.78 | 36.16 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.07 ▼0.14 | 587.92 ▼76.85 | 59.22 ▲3.69 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.19 ▼0.10 | 97.43 ▼4.93 | 42.44 ▼2.84 |
NGG Smart Image Search /wp-admin/options-general.php?page=ngg_smart_image_search | 1,243 | 2.29 | 49.17 | 49.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_hrsis_widget
- theysaidso_admin_options
- hr_SIS_settings
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=ngg_smart_image_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/options-general.php?page=ngg_smart_image_search
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/nextgen-gallery-pro): failed to open dir: No such file or directory
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ngg-smart-image-search/admin/partials/ngg-smart-image-search-admin-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ngg-smart-image-search/public/class-ngg-smart-image-search-public.php:1676
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ngg-smart-image-search/admin/class-ngg-smart-image-search-admin.php:430
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ngg-smart-image-search/ngg-smart-image-search.php Passed 13 tests
The entry point to "NGG Smart Image Search" version 3.1.0 is a PHP file that has certain tags in its header comment area
108 characters long description:
This plugin provides a customizable smart image search and display function for images in NextGEN galleries.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin6,278 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 65 | 46 | 2,431 |
PHP | 12 | 596 | 968 | 2,171 |
SVG | 3 | 0 | 3 | 1,242 |
PO File | 1 | 144 | 195 | 425 |
JavaScript | 2 | 17 | 55 | 9 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 316)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 53.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 343.00 |
Average method complexity | 12.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 316.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 | 38 | |
▷ Static methods | 6 | 15.79% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected