Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▲985.20ms] 75% from 4 tests
An overview of server-side resources used by Mystery Themes Demo Importer
The following require your attention
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 985.20ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 432.53 ▲388.09 |
Dashboard /wp-admin | 3.41 ▲0.10 | 1,224.30 ▲1,168.04 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 1,286.07 ▲1,233.86 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 1,318.53 ▲1,222.08 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 1,195.88 ▲1,162.59 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
mtdi_import_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mystery Themes Demo Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.36 ▲0.08 | 1.52 ▼0.21 | 42.03 ▼1.18 |
Dashboard /wp-admin | 2,208 ▲34 | 5.56 ▼0.00 | 84.81 ▼13.97 | 38.75 ▼4.12 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.94 ▼0.08 | 34.89 ▼6.90 | 36.10 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 20.93 ▼2.06 | 609.60 ▼26.23 | 54.04 ▼4.50 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.13 ▼0.11 | 92.73 ▼15.20 | 41.49 ▼4.26 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- mtdi_import_version
- widget_recent-comments
- can_compress_scripts
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
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/mysterythemes-demo-importer/includes/class-mtdi-loader.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/wp-importers/class-customizer-importer.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/wp-importers/class-widget-importer.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/class-mtdi-library.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/wp-importers/class-mtdi-importer.php
- > /wp-content/plugins/mysterythemes-demo-importer/admin/class-mtdi-admin.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/class-mtdi-activator.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/wp-importers/customizer-class/customize-setting.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/wp-importers/class-mtdi-parsers.php
- > /wp-content/plugins/mysterythemes-demo-importer/includes/class-mtdi.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Theme Demos listing page.), #2 (Install and activate the required plugins.), #3 (Finally, Import the Demo with just one click.)
mysterythemes-demo-importer/mysterythemes-demo-importer.php Passed 13 tests
The main PHP file in "Mystery Themes Demo Importer" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
123 characters long description:
One Click Demo Importer For Mystery Themes official themes demo content, customization options, widgets and theme settings.
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
Everything looks great! No dangerous files found in this plugin7,716 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 85 | 24 | 4,058 |
PHP | 14 | 748 | 1,034 | 3,160 |
CSS | 1 | 49 | 4 | 292 |
JavaScript | 1 | 9 | 8 | 206 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 45.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 6.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 105 | |
▷ Static methods | 8 | 7.62% |
▷ Public methods | 97 | 92.38% |
▷ Protected methods | 1 | 0.95% |
▷ Private methods | 7 | 6.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin