Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.26ms] Passed 4 tests
Server-side resources used by Theme One Click Demo Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 44.16 ▲3.36 |
Dashboard /wp-admin | 3.63 ▲0.33 | 59.71 ▲7.38 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 52.25 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 88.29 ▼4.59 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.23 ▲4.10 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Theme One Click Demo Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 14.31 ▼0.28 | 1.87 ▼0.28 | 43.47 ▼0.79 |
Dashboard /wp-admin | 2,215 ▲35 | 5.65 ▼0.03 | 94.18 ▼1.82 | 41.97 ▼2.67 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.02 ▲0.03 | 35.77 ▼5.27 | 35.91 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 17.67 ▲0.01 | 683.88 ▲13.82 | 57.21 ▲3.16 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.25 ▲0.01 | 97.39 ▼13.50 | 40.95 ▼5.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/theme-one-click-demo-import/inc/views/popups/failed.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/theme-one-click-demo-import/inc/views/complete.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/theme-one-click-demo-import/inc/views/body.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/theme-one-click-demo-import/inc/views/plugins-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/theme-one-click-demo-import/inc/views/popups/information.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/theme-one-click-demo-import/inc/views/popups/purchase-theme.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/theme-one-click-demo-import/inc/views/importing.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/theme-one-click-demo-import/inc/views/popups/activate-theme.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/theme-one-click-demo-import/inc/views/import.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Theme Demos listing page.), #2 (Install and activate the required plugins.), #3 (Finally, Import the Demo with just one click.)
theme-one-click-demo-import/theme-one-click-demo-import.php 85% from 13 tests
The main PHP script in "Theme One Click Demo Importer" version 2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,583 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,534 | 2,296 | 4,938 |
JavaScript | 2 | 780 | 323 | 2,890 |
CSS | 2 | 349 | 58 | 1,755 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 63.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 284.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 194 | |
▷ Static methods | 11 | 5.67% |
▷ Public methods | 106 | 54.64% |
▷ Protected methods | 69 | 35.57% |
▷ Private methods | 19 | 9.79% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 23 | 85.19% |
▷ Class constants | 4 | 14.81% |
▷ Public constants | 4 | 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
No PNG files were detected