Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.81ms] Passed 4 tests
Server-side resources used by Import to Photo Gallery from NextGen gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.01 | 37.95 ▼6.40 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.04 ▼2.20 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 46.27 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 88.97 ▼15.82 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 33.98 ▼2.40 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Import to Photo Gallery from NextGen gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲18 | 14.34 ▼0.01 | 1.64 ▼0.26 | 41.51 ▲0.30 |
Dashboard /wp-admin | 2,213 ▲33 | 5.57 ▼0.01 | 90.53 ▼1.13 | 72.94 ▲28.63 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▼0.02 | 39.46 ▲4.13 | 36.06 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,555 ▲19 | 23.13 ▲4.84 | 743.87 ▲114.81 | 60.65 ▼15.07 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.18 ▼0.00 | 102.31 ▲6.92 | 70.58 ▲27.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/import-to-photo-gallery-from-nextgen-gallery/admin/views/PGIViewImport_pgi.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/import-to-photo-gallery-from-nextgen-gallery/ngitopg.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/import-to-photo-gallery-from-nextgen-gallery/ngitopg.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: nextgen gallery, export, import, photo gallery, gallery
import-to-photo-gallery-from-nextgen-gallery/ngitopg.php 92% from 13 tests
Analyzing the main PHP file in "Import to Photo Gallery from NextGen gallery" version 1.0.5
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("import-to-photo-gallery-from-nextgen-gallery.php" instead of "ngitopg.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
No dangerous file extensions were detected665 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 22 | 56 | 573 |
JavaScript | 1 | 4 | 2 | 56 |
CSS | 1 | 6 | 0 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/import-icon.png | 1.03KB | 0.91KB | ▼ 11.90% |
images/icon-16x16.png | 1.51KB | 0.64KB | ▼ 57.58% |