Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼1.57ms] Passed 4 tests
A check of server-side resources used by Ultra Demo Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 45.97 ▲2.99 |
Dashboard /wp-admin | 3.69 ▲0.38 | 46.06 ▲1.25 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.67 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 81.53 ▼11.13 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 35.98 ▲4.04 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Ultra Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.41 ▼0.88 | 1.89 ▼0.15 | 42.79 ▲0.70 |
Dashboard /wp-admin | 2,222 ▲34 | 5.94 ▲1.01 | 109.89 ▼3.97 | 38.84 ▼2.34 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.31 ▲0.30 | 39.12 ▲2.97 | 31.88 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.76 ▲5.49 | 678.75 ▲52.93 | 37.64 ▼15.56 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.36 ▲0.19 | 99.38 ▲3.09 | 42.05 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% 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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ut-demo-importer/view/view-head.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ut-demo-importer/CustomizerOption.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ut-demo-importer/ut-demo-importer.php:19
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ut-demo-importer/view/view-body.php:4
- > PHP Warning
require_once(ABSPATHwp-includes/class-wp-customize-setting.php): failed to open stream: No such file or directory in wp-content/plugins/ut-demo-importer/CustomizerOption.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/class-wp-customize-setting.php' (include_path='.:/usr/share/php') in wp-content/plugins/ut-demo-importer/CustomizerOption.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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: elementor, demo, importer
ut-demo-importer/ut-demo-importer.php Passed 13 tests
Analyzing the main PHP file in "Ultra Demo Importer" version 1.0.5
114 characters long description:
Ultra Demo Importer is a plugin to import ready to use demo sites for different themes developed by Uncode themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,436 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 387 | 602 | 2,407 |
JavaScript | 5 | 551 | 914 | 2,378 |
CSS | 3 | 25 | 20 | 651 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 49.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 6.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 1 | 12.50% |
Methods | 76 | |
▷ Static methods | 7 | 9.21% |
▷ Public methods | 70 | 92.11% |
▷ Protected methods | 3 | 3.95% |
▷ Private methods | 3 | 3.95% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot.png | 1.24KB | 1.15KB | ▼ 7.57% |
assets/img/done.png | 5.97KB | 2.82KB | ▼ 52.68% |