Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.88ms] Passed 4 tests
An overview of server-side resources used by EnvoThemes Demo Importer for KingComposer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.30 ▼4.85 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.99 ▼2.95 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 49.61 ▼3.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.68 ▲3.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.62 ▼0.11 |
EnvoThemes Demo Import /wp-admin/themes.php?page=et-import | 3.25 | 31.64 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EnvoThemes Demo Importer for KingComposer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲49 | 13.20 ▼1.22 | 1.82 ▼0.27 | 42.95 ▼2.47 |
Dashboard /wp-admin | 2,226 ▲38 | 4.86 ▼0.04 | 112.47 ▲0.60 | 46.53 ▲0.05 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.00 ▼0.02 | 39.90 ▼2.72 | 38.20 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.19 ▲5.00 | 629.30 ▲10.18 | 53.59 ▼1.42 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.28 ▼0.03 | 95.75 ▼3.45 | 43.56 ▼1.11 |
EnvoThemes Demo Import /wp-admin/themes.php?page=et-import | 779 | 2.03 | 28.18 | 26.99 |
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
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/envothemes-importer-kingcomposer/inc/useful-plugins.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/envothemes-importer-kingcomposer/inc/admin-page.php:240
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envothemes-importer-kingcomposer/inc/welcome.php:6
- > PHP Fatal error
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 96% 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
6 plugin tags: import, kingcomposer, content, demo, data...
envothemes-importer-kingcomposer/envothemes-importer-kingcomposer.php 92% from 13 tests
Analyzing the main PHP file in "EnvoThemes Demo Importer for KingComposer" version 1.0.4
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected903 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 7 | 16 | 468 |
PHP | 4 | 74 | 55 | 349 |
CSS | 1 | 2 | 1 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 6.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected