Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.93ms] Passed 4 tests
This is a short check of server-side resources used by Template Sell Demo Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.51 ▲0.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.35 ▼1.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.23 ▼1.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.57 ▼5.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.32 ▼2.17 |
Server storage [IO: ▲5.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Template Sell Demo Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.22 ▼0.15 | 1.89 ▲0.30 | 42.59 ▲1.56 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▲0.00 | 90.50 ▼1.97 | 41.10 ▼4.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.01 | 40.85 ▲2.49 | 35.36 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.81 ▲0.46 | 642.15 ▼32.83 | 53.54 ▼2.23 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.02 | 101.22 ▼7.62 | 44.34 ▼0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/template-sell-demo-importer/prefer-dummy-data/prefer-dummy-data.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/template-sell-demo-importer/docile-dummy-data/docile-dummy-data.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/template-sell-demo-importer/intimate-dummy-data/intimate-dummy-data.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/template-sell-demo-importer/polite-dummy-data/polite-dummy-data.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 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
3 plugin tags: dummy data files, demo data, one click demo import
template-sell-demo-importer/templatesell-demo-importer.php 69% from 13 tests
Analyzing the main PHP file in "Template Sell Demo Importer" version 1.0.2
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("template-sell-demo-importer.php" instead of "templatesell-demo-importer.php")
- Description: The description should be shorter than 140 characters (currently 168 characters long)
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected62,580 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 10 | 3,244 | 6,239 | 62,301 |
PHP | 6 | 48 | 142 | 279 |
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.27 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.12MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
rector-dummy-data/dummy-data-files/assets/elementor.png | 123.09KB | 134.99KB | 0.00% |