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.76MB] [CPU: ▲0.76ms] Passed 4 tests
A check of server-side resources used by Sparkle Demo Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 40.81 ▼3.05 |
Dashboard /wp-admin | 4.30 ▲1.00 | 48.66 ▼1.56 |
Posts /wp-admin/edit.php | 4.30 ▲0.95 | 51.14 ▲2.44 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 92.94 ▲5.21 |
Media Library /wp-admin/upload.php | 4.30 ▲1.08 | 37.85 ▲5.31 |
Sparkle Demo Import /wp-admin/themes.php?page=sparkle-theme-demo-importer | 4.31 | 34.29 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sparkle Demo Importer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.29 ▼1.00 | 1.84 ▼0.07 | 41.57 ▼1.52 |
Dashboard /wp-admin | 2,218 ▲29 | 5.06 ▲0.12 | 111.43 ▼7.42 | 40.82 ▼4.64 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.32 ▲0.32 | 44.98 ▼0.40 | 35.16 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.14 ▲5.52 | 592.44 ▼85.81 | 48.90 ▼13.66 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.30 ▲0.09 | 96.23 ▼10.79 | 42.09 ▼2.13 |
Sparkle Demo Import /wp-admin/themes.php?page=sparkle-theme-demo-importer | 825 | 1.77 | 24.73 | 28.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sparkle-demo-importer/import_config.php:7749
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/sparkle-demo-importer/wordpress-importer/class-wp-import.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/sparkle-demo-importer/classes/class-customizer-option.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: importer, sparkle demo data, demo content, sparklestore demo data, demo data...
sparkle-demo-importer/sparkle-demo-importer.php 92% from 13 tests
"Sparkle Demo Importer" version 1.4.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin14,382 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 796 | 1,142 | 11,679 |
JavaScript | 2 | 559 | 860 | 2,314 |
CSS | 1 | 71 | 0 | 389 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 55.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 6.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 2 | 13.33% |
Methods | 152 | |
▷ Static methods | 14 | 9.21% |
▷ Public methods | 143 | 94.08% |
▷ Protected methods | 4 | 2.63% |
▷ Private methods | 5 | 3.29% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin