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.01MB] [CPU: ▼3.37ms] Passed 4 tests
This is a short check of server-side resources used by New Simple Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.74 ▼4.21 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.11 ▼3.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.88 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.44 ▲0.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.71 ▼4.21 |
New simple gallery /wp-admin/options-general.php?page=new-simple-gallery | 3.28 | 31.81 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_new_simple_gallery |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for New Simple Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.82 ▼0.93 | 8.76 ▲7.00 | 42.52 ▼2.08 |
Dashboard /wp-admin | 2,207 ▲19 | 5.77 ▼0.11 | 101.69 ▼13.62 | 42.13 ▼3.15 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 37.72 ▲1.16 | 31.43 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.78 ▼5.63 | 638.06 ▼36.38 | 72.77 ▲19.20 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.07 | 95.32 ▼6.59 | 42.64 ▼2.13 |
New simple gallery /wp-admin/options-general.php?page=new-simple-gallery | 1,009 | 2.03 | 26.13 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/new-simple-gallery/new-simple-gallery.php
- > /wp-content/plugins/new-simple-gallery/pages/image-management-add.php
- > /wp-content/plugins/new-simple-gallery/pages/image-management-edit.php
- > /wp-content/plugins/new-simple-gallery/pages/image-management-show.php
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 on the user side
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
3 plugin tags: gallery, images, slideshow
new-simple-gallery/new-simple-gallery.php 92% from 13 tests
The entry point to "New Simple Gallery" version 8.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 245 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
Success! There were no dangerous files found in this plugin1,188 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 64 | 41 | 691 |
JavaScript | 2 | 17 | 17 | 262 |
PO File | 2 | 121 | 205 | 235 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/image-icon.png | 0.61KB | 0.66KB | 0.00% |