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
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲0.97ms] Passed 4 tests
A check of server-side resources used by Swift Demo Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 42.27 ▲4.80 |
Dashboard /wp-admin | 3.57 ▲0.26 | 50.16 ▼4.04 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 46.99 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 96.02 ▲8.02 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.78 ▲1.91 |
Swift Demo Import /wp-admin/themes.php?page=sdi-demo-import | 3.46 | 32.12 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Swift Demo Import
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.71 ▼0.65 | 1.73 ▼0.03 | 44.61 ▲0.40 |
Dashboard /wp-admin | 2,221 ▲42 | 4.98 ▼0.94 | 107.23 ▼4.00 | 35.75 ▼11.94 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.28 ▲0.30 | 34.77 ▼7.12 | 35.10 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.11 ▲0.05 | 595.59 ▼96.27 | 57.72 ▲2.73 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.31 ▲0.12 | 99.31 ▲1.09 | 42.46 ▼6.29 |
Swift Demo Import /wp-admin/themes.php?page=sdi-demo-import | 811 | 1.78 | 25.78 | 26.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/swift-demo-import/wordpress-importer/class-wp-import.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/swift-demo-import/import_config.php:581
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/swift-demo-import/classes/class-customizer-option.php:8
- > 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 issues were found
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: content, one click import, mysticalthemes, import, widgets...
swift-demo-import/swift-demo-import.php 92% from 13 tests
The primary PHP file in "Swift Demo Import" version 2.0.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,641 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 743 | 658 | 3,890 |
JavaScript | 2 | 555 | 851 | 2,304 |
CSS | 1 | 78 | 1 | 447 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 46.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 6.20 |
▷ 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 | 2 | 14.29% |
Methods | 121 | |
▷ Static methods | 14 | 11.57% |
▷ Public methods | 113 | 93.39% |
▷ Protected methods | 3 | 2.48% |
▷ Private methods | 5 | 4.13% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin