Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼0.42ms] Passed 4 tests
An overview of server-side resources used by Demo Import Kit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 47.81 ▲4.45 |
Dashboard /wp-admin | 3.81 ▲0.47 | 55.04 ▼9.85 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 57.33 ▲7.84 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 92.28 ▼4.11 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 43.26 ▲8.33 |
Demo Import Kit /wp-admin/themes.php?page=demo-import-kit | 3.80 | 36.45 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Demo Import Kit: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.11 | 1.95 ▼0.05 | 44.99 ▲1.36 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.01 | 116.46 ▲0.21 | 36.22 ▼3.04 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.01 | 39.70 ▲2.22 | 35.19 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.50 ▲0.06 | 694.16 ▲68.12 | 61.89 ▲12.10 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.25 ▲0.04 | 102.57 ▼2.05 | 45.16 ▼4.19 |
Demo Import Kit /wp-admin/themes.php?page=demo-import-kit | 854 | 1.93 | 39.25 | 37.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/demo-import-kit/inc/logger.php
- > /wp-content/plugins/demo-import-kit/inc/export.php
- > /wp-content/plugins/demo-import-kit/inc/base.php
- > /wp-content/plugins/demo-import-kit/inc/importer.php
- > /wp-content/plugins/demo-import-kit/inc/class-logger-cli.php
- > /wp-content/plugins/demo-import-kit/inc/class-wxr-importer.php
- > /wp-content/plugins/demo-import-kit/inc/WXRImporter.php
- > /wp-content/plugins/demo-import-kit/inc/views.php
- > /wp-content/plugins/demo-import-kit/inc/widget-importer.php
- > /wp-content/plugins/demo-import-kit/inc/class-logger.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: settings, plugin, theme import, theme options, import...
demo-import-kit/demo-import-kit.php Passed 13 tests
This is the main PHP file of "Demo Import Kit" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
The plugin simpally import and export customizer, Widget and content data.
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
Success! There were no dangerous files found in this plugin6,517 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 692 | 1,263 | 3,092 |
JavaScript | 3 | 591 | 877 | 2,536 |
CSS | 1 | 0 | 5 | 889 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 35.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 97 | |
▷ Static methods | 14 | 14.43% |
▷ Public methods | 54 | 55.67% |
▷ Protected methods | 33 | 34.02% |
▷ Private methods | 10 | 10.31% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Image/logo.png | 10.97KB | 5.58KB | ▼ 49.10% |