Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.47MB] [CPU: ▲2.90ms] Passed 4 tests
Analyzing server-side resources used by Theme Demo Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 43.17 ▲2.71 |
Dashboard /wp-admin | 3.80 ▲0.50 | 51.84 ▲0.50 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 51.97 ▲6.69 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 93.42 ▲3.79 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 38.45 ▲4.59 |
Import Demo Content /wp-admin/themes.php?page=theme-demo-import | 3.78 | 34.93 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme Demo Import
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.23 ▼1.04 | 1.73 ▼0.41 | 45.02 ▼0.81 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▼0.05 | 107.96 ▲4.50 | 40.67 ▼4.52 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.03 | 41.45 ▲5.25 | 35.26 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.07 ▼0.46 | 593.80 ▼99.18 | 48.41 ▼5.32 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▼0.03 | 96.15 ▼7.27 | 40.87 ▼2.71 |
Import Demo Content /wp-admin/themes.php?page=theme-demo-import | 876 | 1.96 | 39.47 | 61.22 |
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: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/theme-demo-import/theme-demo-import.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/theme-demo-import/inc/class-tdi-customizer-option.php:12
- > PHP Warning
Use of undefined constant TDI_PATH - assumed 'TDI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/theme-demo-import/inc/class-tdi-logger.php on line 9
- > PHP Fatal error
require(): Failed opening required 'TDI_PATHinc/class-tdi-helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/theme-demo-import/inc/class-tdi-main.php on line 9
- > PHP Warning
require(TDI_PATHinc/importer/class-wxr-importer.php): failed to open stream: No such file or directory in wp-content/plugins/theme-demo-import/inc/class-tdi-wxr-importer.php on line 11
- > PHP Warning
require(TDI_PATHinc/importer/class-logger.php): failed to open stream: No such file or directory in wp-content/plugins/theme-demo-import/inc/class-tdi-logger.php on line 9
- > PHP Warning
Use of undefined constant TDI_PATH - assumed 'TDI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/theme-demo-import/inc/class-tdi-main.php on line 9
- > PHP Fatal error
require(): Failed opening required 'TDI_PATHinc/importer/class-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/theme-demo-import/inc/class-tdi-logger.php on line 9
- > PHP Fatal error
require(): Failed opening required 'TDI_PATHinc/importer/class-wxr-importer.php' (include_path='.:/usr/share/php') in wp-content/plugins/theme-demo-import/inc/class-tdi-wxr-importer.php on line 11
- > PHP Warning
Use of undefined constant TDI_PATH - assumed 'TDI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/theme-demo-import/inc/class-tdi-wxr-importer.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'HM_WP_Importer_Logger' not found in wp-content/plugins/theme-demo-import/inc/importer/class-logger-cli.php:3
- > 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
7 plugin tags: theme, import, settings, data, widgets...
theme-demo-import/theme-demo-import.php 92% from 13 tests
"Theme Demo Import" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
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
No dangerous file extensions were detected2,644 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 763 | 1,206 | 2,503 |
CSS | 1 | 25 | 7 | 80 |
JavaScript | 1 | 12 | 7 | 61 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 38.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 110 | |
▷ Static methods | 23 | 20.91% |
▷ Public methods | 57 | 51.82% |
▷ Protected methods | 34 | 30.91% |
▷ Private methods | 19 | 17.27% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected