Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.39ms] Passed 4 tests
Analyzing server-side resources used by HashThemes Demo Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.38 ▼3.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.23 ▲0.78 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 42.21 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.66 ▼20.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.60 ▲3.92 |
HashThemes Demo Importer /wp-admin/themes.php?page=hdi-demo-importer | 3.24 | 30.24 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HashThemes Demo Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.25 ▼1.06 | 1.86 ▲0.12 | 43.65 ▼2.64 |
Dashboard /wp-admin | 2,221 ▲30 | 5.96 ▲1.07 | 99.97 ▼6.48 | 40.87 ▼2.96 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.13 ▲0.09 | 34.66 ▼8.81 | 31.36 ▼7.84 |
Add New Post /wp-admin/post-new.php | 1,528 ▼14 | 23.43 ▲5.00 | 669.95 ▲63.39 | 38.20 ▼16.61 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.37 ▲0.14 | 95.69 ▼1.39 | 41.14 ▼2.42 |
HashThemes Demo Importer /wp-admin/themes.php?page=hdi-demo-importer | 811 | 1.79 | 24.10 | 24.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- 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
Good news, no errors were detected
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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/hashthemes-demo-importer/classes/class-customizer-option.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/hashthemes-demo-importer/wordpress-importer/class-wp-import.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hashthemes-demo-importer/import_config.php:1277
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: content, demo importer, one click import, import, widgets...
hashthemes-demo-importer/hashthemes-demo-importer.php Passed 13 tests
"HashThemes Demo Importer" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Easily imports demo with just one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,309 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 688 | 645 | 4,138 |
JavaScript | 2 | 555 | 851 | 2,307 |
CSS | 2 | 150 | 0 | 864 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 58.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 6.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 103 | |
▷ Static methods | 14 | 13.59% |
▷ Public methods | 95 | 92.23% |
▷ Protected methods | 3 | 2.91% |
▷ Private methods | 5 | 4.85% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin