Benchmarks
Plugin footprint 65% 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.80MB] [CPU: ▼30.68ms] Passed 4 tests
An overview of server-side resources used by NG Gallery Optimizer Modified
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.12 | 39.60 ▼0.46 |
Dashboard /wp-admin | 3.18 ▼0.16 | 28.22 ▼24.16 |
Posts /wp-admin/edit.php | 3.18 ▼0.21 | 28.01 ▼24.47 |
Add New Post /wp-admin/post-new.php | 3.18 ▼2.74 | 27.63 ▼66.08 |
Media Library /wp-admin/upload.php | 3.18 ▼0.08 | 26.78 ▼7.99 |
Ngg Optimizer Modified /wp-admin/admin.php?page=nggom_options | 3.18 | 25.47 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: no files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
ngg_optimizer_modified_settings |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by NG Gallery Optimizer Modified
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.34 | 1.63 ▼0.12 | 42.00 ▲2.56 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.04 | 112.43 ▲10.15 | 45.23 ▲4.48 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.04 ▲0.07 | 39.23 ▼3.93 | 33.71 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.54 ▲0.49 | 583.76 ▼28.58 | 53.76 ▼9.81 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.28 ▲0.05 | 99.29 ▼2.49 | 44.99 ▲1.46 |
Ngg Optimizer Modified /wp-admin/admin.php?page=nggom_options | 1,010 | 2.19 | 24.05 | 45.53 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-gallery-optimizer.php+234
Use of undefined constant NGGO_VERSION - assumed 'NGGO_VERSION' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=nggom_options
- > Warning in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-gallery-optimizer.php+234
Use of undefined constant NGGO_VERSION - assumed 'NGGO_VERSION' (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=nggom_options
- > 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=nggom_options
- > Warning in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-optimizer-options.php+69
Use of undefined constant wordpress - assumed 'wordpress' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=nggom_options
- > Warning in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-optimizer-options.php+73
Use of undefined constant google - assumed 'google' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=nggom_options
- > Warning in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-optimizer-options.php+91
Use of undefined constant NGGO_FANCYBOX_VERSION - assumed 'NGGO_FANCYBOX_VERSION' (this will throw an Error in a future version of PHP)
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-gallery-optimizer.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ng-gallery-optimizer-modified/nextgen-optimizer-functions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ng-gallery-optimizer-modified/nextgen-gallery-optimizer.php 85% from 13 tests
"NG Gallery Optimizer Modified" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ng-gallery-optimizer-modified.php" instead of "nextgen-gallery-optimizer.php")
- Description: The description should be shorter than 140 characters (currently 288 characters long)
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
Good job! No executable or dangerous file extensions detected2,151 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 304 | 127 | 893 |
PHP | 5 | 334 | 171 | 634 |
CSS | 3 | 110 | 36 | 624 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
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 | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
21 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |
fancybox/fancy_title_right.png | 0.49KB | 0.82KB | 0.00% |
fancybox/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |
fancybox/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
fancybox/fancybox.png | 14.93KB | 8.47KB | ▼ 43.29% |