Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/sparky-logos/sparky_logos.php+24
Undefined variable: wpdb
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.81ms] Passed 4 tests
Server-side resources used by Sparky Logos
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.99 ▼32.16 |
Dashboard /wp-admin | 2.07 ▼1.23 | 4.78 ▼46.61 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 7.44 ▼43.78 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.98 ▼92.67 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 4.89 ▼31.27 |
All Logos /wp-admin/edit.php?post_type=sparky_logo | 2.07 | 5.95 |
Add New /wp-admin/post-new.php?post_type=sparky_logo | 2.07 | 7.38 |
Categories /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo | 2.07 | 7.14 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sparky Logos
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲184 | 14.02 ▲0.80 | 8.27 ▲4.02 | 41.69 ▼0.38 |
Dashboard /wp-admin | 2,236 ▲45 | 5.97 ▲0.89 | 96.48 ▼6.16 | 39.13 ▼2.30 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.04 ▲0.05 | 35.48 ▲1.25 | 33.65 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▲20 | 17.56 ▼5.40 | 740.18 ▲66.32 | 59.80 ▲8.33 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.20 ▲0.02 | 95.06 ▼0.36 | 39.83 ▼1.10 |
All Logos /wp-admin/edit.php?post_type=sparky_logo | 1,098 | 1.99 | 32.74 | 28.14 |
Add New /wp-admin/post-new.php?post_type=sparky_logo | 2,350 | 7.77 | 187.02 | 72.28 |
Categories /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo | 1,295 | 2.14 | 25.69 | 28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/sparky-logos/sparky_logos.php+24
Undefined variable: wpdb
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo
- > Notice in wp-content/plugins/sparky-logos/sparky_logos.php+24
Undefined variable: wpdb
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo
- > Notice in wp-content/plugins/sparky-logos/sparky_logos.php+24
Trying to get property 'prefix' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom_sl_admin_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom_sl_admin_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=sparky_logo_categories&post_type=sparky_logo
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sparky-logos/admin/functions.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/sparky-logos/sparky_logos.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=sparky_logo
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/sparky-logos/admin/sparky-logo.js?wp-mce-49110-20201110:49:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=sparky_logo
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
sparky-logos/sparky_logos.php 85% from 13 tests
Analyzing the main PHP file in "Sparky Logos" version 1.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("sparky-logos.php" instead of "sparky_logos.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,989 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 219 | 24 | 1,378 |
CSS | 4 | 35 | 28 | 399 |
PHP | 2 | 44 | 16 | 212 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/gallery.png | 3.35KB | 0.76KB | ▼ 77.41% |
admin/owl-carousel/grabbing.png | 0.11KB | 0.14KB | 0.00% |
admin/overlay.png | 0.11KB | 0.15KB | 0.00% |