Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/spartan-gallery/admin/exopite-simple-options/fields-class.php+290
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.43MB] [CPU: ▼188.15ms] Passed 4 tests
Server-side resources used by Spartan Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▲0.61 | 46.73 ▲10.08 |
Dashboard /wp-admin | 2.23 ▼0.83 | 6.83 ▼42.88 |
Posts /wp-admin/edit.php | 2.23 ▼0.89 | 6.72 ▼51.27 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.21 | 7.28 ▼636.63 |
Media Library /wp-admin/upload.php | 2.23 ▼0.78 | 10.74 ▼21.83 |
Export Gallery /wp-admin/edit.php?post_type=spartan_gallery_type&page=wbc-export-posts | 2.23 | 7.41 |
Import Gallery /wp-admin/edit.php?post_type=spartan_gallery_type&page=wbc-import-posts | 2.23 | 7.60 |
Add New /wp-admin/post-new.php?post_type=spartan_gallery_type | 2.23 | 10.30 |
Welcome Page /wp-admin/edit.php?post_type=spartan_gallery_type&page=wpw_welcome_page | 2.23 | 23.31 |
All Spartan Gallerys /wp-admin/edit.php?post_type=spartan_gallery_type | 2.23 | 8.95 |
Server storage [IO: ▲12.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 579 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Spartan Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,989 ▲352 | 17.04 ▲1.37 | 20.39 ▲11.62 | 46.25 ▼12.62 |
Dashboard /wp-admin | 3,028 ▲97 | 6.10 ▼0.06 | 142.43 ▼26.00 | 109.81 ▼16.12 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 2.70 ▲0.01 | 69.72 ▼4.83 | 94.98 ▼7.66 |
Add New Post /wp-admin/post-new.php | 1,657 ▲76 | 21.44 ▲0.99 | 284.80 ▼132.53 | 136.07 ▲22.44 |
Media Library /wp-admin/upload.php | 1,867 ▲57 | 5.27 ▲0.25 | 149.81 ▼7.07 | 133.75 ▲8.05 |
Export Gallery /wp-admin/edit.php?post_type=spartan_gallery_type&page=wbc-export-posts | 1,048 | 2.38 | 56.49 | 57.46 |
Import Gallery /wp-admin/edit.php?post_type=spartan_gallery_type&page=wbc-import-posts | 1,048 | 2.39 | 58.67 | 60.21 |
Add New /wp-admin/post-new.php?post_type=spartan_gallery_type | 4,586 | 6.89 | 210.99 | 187.63 |
Welcome Page /wp-admin/edit.php?post_type=spartan_gallery_type&page=wpw_welcome_page | 1,490 | 7.02 | 279.36 | 203.57 |
All Spartan Gallerys /wp-admin/edit.php?post_type=spartan_gallery_type | 1,475 | 2.63 | 65.57 | 79.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/spartan-gallery/admin/exopite-simple-options/fields-class.php+290
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=spartan_gallery_type
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/spartan-gallery/admin/exopite-simple-options/fields-class.php+290
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- > GET request to /wp-admin/post-new.php?post_type=spartan_gallery_type
- > Notice in wp-content/plugins/spartan-gallery/admin/exopite-simple-options/exopite-simple-options-framework-class.php+1077
Undefined index: spartan-gallery-meta
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 take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/spartan-gallery/public/spartan-gallery-styles.php
- > /wp-content/plugins/spartan-gallery/public/custom-columns.php
- > /wp-content/plugins/spartan-gallery/public/partials/spartan-gallery-public-display.php
- > /wp-content/plugins/spartan-gallery/public/popup.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function PostType\\add_action() in wp-content/plugins/spartan-gallery/admin/class-spartan-gallery-post-type.php:89
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/spartan-gallery/admin/exopite-simple-options/fields-class.php on line 290
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/spartan-gallery/public/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/spartan-gallery/public/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/spartan-gallery/public/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=spartan_gallery_type
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=spartan_gallery_type
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=spartan_gallery_type
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=spartan_gallery_type
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/edit.php?post_type=spartan_gallery_type&page=wpw_welcome_page
- > Network (severe)
var/www/wordpress/wp-content/plugins/spartan-gallery/admin/class-spartan-gallery-welcome-dashboard.php/welcome/css/style.css?ver=/var/www/wordpress/wp-content/plugins/spartan-gallery/admin/class-spartan-gallery-welcome-dashboard.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=spartan_gallery_type&page=wpw_welcome_page
- > Deprecation (warning) in unknown
deprecation 0 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Banner for plugin), #2 (Banner for plugin smaller), #3 (Spartan Gallery logo), #4 (Layout Example 1), #5 (Layout Example 2)
- Screenshots: A description for screenshot #12 is required in spartan-gallery/assets to your readme.txt
spartan-gallery/spartan-gallery.php Passed 13 tests
The principal PHP file in "Spartan Gallery" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected28,840 lines of code in 519 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 420 | 1,541 | 8,670 | 9,382 |
PHP | 62 | 2,613 | 4,061 | 6,624 |
CSS | 17 | 119 | 87 | 5,039 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
SVG | 2 | 0 | 0 | 2,672 |
Markdown | 1 | 58 | 0 | 281 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 1 | 1.79% |
▷ Concrete classes | 55 | 98.21% |
▷ Final classes | 0 | 0.00% |
Methods | 306 | |
▷ Static methods | 40 | 13.07% |
▷ Public methods | 261 | 85.29% |
▷ Protected methods | 38 | 12.42% |
▷ Private methods | 7 | 2.29% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
23 compressed PNG files occupy 1.81MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/spartan-logo.png | 163.51KB | 76.05KB | ▼ 53.49% |
admin/exopite-simple-options/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/exopite-simple-options/assets/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/exopite-simple-options/assets/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/exopite-simple-options/assets/images/ui-icons_bf3030_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |