Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▲0.75MB] [CPU: ▲266.12ms] 75% from 4 tests
This is a short check of server-side resources used by Crafthemes Demo Import
Please take the time to fix the following items
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 266.12ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 320.34 ▲274.99 |
Dashboard /wp-admin | 4.11 ▲0.80 | 323.86 ▲273.78 |
Posts /wp-admin/edit.php | 4.17 ▲0.81 | 327.16 ▲272.65 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 337.92 ▲243.07 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 332.59 ▲293.72 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Crafthemes Demo Import: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲225 | 15.03 ▲0.72 | 2.04 ▲0.05 | 42.82 ▼0.75 |
Dashboard /wp-admin | 2,362 ▲174 | 6.45 ▲0.55 | 133.01 ▲12.63 | 45.01 ▲1.64 |
Posts /wp-admin/edit.php | 2,268 ▲179 | 3.29 ▲1.29 | 55.98 ▲19.07 | 35.26 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 21.22 ▲2.97 | 636.80 ▲10.32 | 37.48 ▼11.85 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.10 ▼0.09 | 78.56 ▼26.53 | 42.13 ▼3.96 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/crafthemes-demo-import/inc/CTAdditionals.php
- > /wp-content/plugins/crafthemes-demo-import/crafthemes-demo-import.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crafthemes-demo-import/inc/misc.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/crafthemes-demo-import/inc/WPCLICommands.php:12
- > PHP Fatal error
Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/crafthemes-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/crafthemes-demo-import/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crafthemes-demo-import/views/plugin-page.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/crafthemes-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php:4
- > PHP Fatal error
Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/crafthemes-demo-import/inc/WXRImporter.php:12
- > PHP Fatal error
Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/crafthemes-demo-import/inc/Logger.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
8 plugin tags: widgets, settings, redux, content, import...
crafthemes-demo-import/crafthemes-demo-import.php 92% from 13 tests
The primary PHP file in "Crafthemes Demo Import" version 3.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,238 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,092 | 1,848 | 4,558 |
CSS | 2 | 84 | 28 | 345 |
JavaScript | 2 | 62 | 68 | 257 |
JSON | 2 | 0 | 0 | 64 |
Markdown | 1 | 11 | 0 | 14 |
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.42 |
Average class complexity | 29.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 174 | |
▷ Static methods | 36 | 20.69% |
▷ Public methods | 112 | 64.37% |
▷ Protected methods | 36 | 20.69% |
▷ Private methods | 26 | 14.94% |
Functions | 27 | |
▷ Named functions | 22 | 81.48% |
▷ Anonymous functions | 5 | 18.52% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-1x1.png | 0.81KB | 0.89KB | 0.00% |