Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ninja-galleries/wpnj-media-tags/media_tags.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wpnjMediaTags has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼55.07ms] Passed 4 tests
An overview of server-side resources used by Ninja Galleries
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 5.55 ▼35.05 |
Dashboard /wp-admin | 2.23 ▼1.07 | 7.83 ▼45.23 |
Posts /wp-admin/edit.php | 2.23 ▼1.12 | 6.37 ▼44.26 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 6.99 ▼95.75 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 7.84 ▼32.22 |
Galleries /wp-admin/edit.php?post_type=wpnj_gallery | 2.23 | 5.78 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=wpnj_gallery_cat&post_type=wpnj_gallery | 2.23 | 6.57 |
Wpnj Media Tags /wp-admin/options-general.php?page=wpnj-media-tags | 2.23 | 6.30 |
Wpnj Media Tags /wp-admin/upload.php?page=wpnj-media-tags | 2.23 | 6.64 |
Add New /wp-admin/post-new.php?post_type=wpnj_gallery | 2.23 | 6.74 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ninja Galleries
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲119 | 13.42 ▼0.82 | 1.66 ▼0.10 | 42.66 ▲1.36 |
Dashboard /wp-admin | 2,259 ▲68 | 5.00 ▼0.01 | 103.02 ▼2.26 | 59.08 ▲15.09 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.23 ▲0.25 | 34.29 ▼3.38 | 33.05 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 17.48 ▼5.71 | 708.88 ▲70.47 | 58.90 ▲1.36 |
Media Library /wp-admin/upload.php | 1,447 ▲56 | 4.35 ▲0.08 | 108.88 ▲3.75 | 70.97 ▲24.83 |
Galleries /wp-admin/edit.php?post_type=wpnj_gallery | 1,116 | 2.15 | 34.94 | 31.38 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=wpnj_gallery_cat&post_type=wpnj_gallery | 1,327 | 2.22 | 27.61 | 31.93 |
Wpnj Media Tags /wp-admin/options-general.php?page=wpnj-media-tags | 916 | 1.77 | 25.25 | 28.61 |
Wpnj Media Tags /wp-admin/upload.php?page=wpnj-media-tags | 1,088 | 1.82 | 26.97 | 30.20 |
Add New /wp-admin/post-new.php?post_type=wpnj_gallery | 2,371 | 7.65 | 172.91 | 132.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/ninja-galleries/wpnj-media-tags/media_tags.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wpnjMediaTags has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > Deprecated in wp-content/plugins/ninja-galleries/wpnj-media-tags/media_tags.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wpnjMediaTags has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpnj-media-tags
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpnj-media-tags
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > Notice in wp-content/plugins/ninja-galleries/ninja-galleries.php+368
Undefined index: mytheme_meta_box2_nonce
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > Notice in wp-content/plugins/ninja-galleries/ninja-galleries.php+208
Undefined variable: post_ID
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > Notice in wp-content/plugins/ninja-galleries/ninja-galleries.php+207
Undefined variable: post
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > Notice in wp-content/plugins/ninja-galleries/ninja-galleries.php+207
Trying to get property 'post_date' of non-object
SRP 50% 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
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ninja-galleries/wpnj-media-tags/mediatags_config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ninja-galleries/wpnj-media-tags/mediatags_config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ninja-galleries/wpnj-media-tags/mediatags_config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/ninja-galleries/wpnj-media-tags/mediatags_rss.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpnj_gallery
- > Network (severe)
wp-content/themes/twentytwentyone/images/icon-gallery.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpnj-media-tags
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'substr')" "TypeError: Cannot read properties of undefined (reading 'substr')\n at Object.init (/wp-content/plugins/ninja-galleries/wpnj-media-tags/mediatags_inline_edit.js:8:44)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ninja-galleries/wpnj-media-tags/mediatags_inline_edit.js:154:50)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpnj-media-tags
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'substr')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The add/edit gallery view.), #2 (Editing a gallery. Underneath the description you can select any number of media tags to pull into this gallery. You can also assign a category and give this gallery a featured image. The featured image will be the gallery thumbnail.), #3 (Editing a picture/media. At the bottom of the page, you can assign media tags that exist or create new ones.), #4 (The final product. The images are all inside
- tags and styled accordingly.), #5 (Since we have Lightbox Plus (v. 2.2.2) installed, clicking on an image in the gallery opens this Lightbox Popup.)
ninja-galleries/ninja-galleries.php Passed 13 tests
This is the main PHP file of "Ninja Galleries" version 1.0.24, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
126 characters long description:
Ninja Galleries lets you easily create image galleries by tagging your images and then assigning those tags to a gallery page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,136 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 401 | 192 | 1,972 |
JavaScript | 1 | 36 | 7 | 112 |
CSS | 1 | 9 | 0 | 52 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 69 | |
▷ Named functions | 69 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 1.96MB with 1.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 960.07KB | 283.49KB | ▼ 70.47% |
screenshot-1.png | 127.98KB | 33.98KB | ▼ 73.45% |
screenshot-4.png | 606.80KB | 155.39KB | ▼ 74.39% |
screenshot-3.png | 110.31KB | 30.53KB | ▼ 72.32% |
screenshot-2.png | 197.19KB | 52.67KB | ▼ 73.29% |