Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.70ms] Passed 4 tests
This is a short check of server-side resources used by PostmagThemes Demo Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 32.89 ▼6.52 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.12 ▼5.29 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 43.83 ▼4.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.64 ▼14.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.95 ▼1.50 |
Import Demo Data /wp-admin/themes.php?page=pt-one-click-demo-import | 3.33 | 32.90 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PostmagThemes Demo Import
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.03 | 1.62 ▼0.04 | 35.66 ▼7.58 |
Dashboard /wp-admin | 2,199 ▲22 | 5.49 ▼0.09 | 81.53 ▼17.65 | 40.61 ▼3.86 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.03 | 34.03 ▼2.55 | 34.35 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.63 ▼4.48 | 639.27 ▲19.32 | 72.40 ▲28.36 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.00 | 101.24 ▲2.79 | 39.65 ▼4.70 |
Import Demo Data /wp-admin/themes.php?page=pt-one-click-demo-import | 927 | 2.01 | 37.97 | 61.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/postmagthemes-demo-import/postmagthemes-demo-import.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/postmagthemes-demo-import/views/plugin-page.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/postmagthemes-demo-import/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Class 'PostmagThemes\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/postmagthemes-demo-import/inc/WXRImporter.php:13
- > PHP Fatal error
Uncaught Error: Class 'PostmagThemes\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/postmagthemes-demo-import/inc/Logger.php:10
- > PHP Fatal error
Uncaught Error: Class 'PostmagThemes\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/postmagthemes-demo-import/vendor/postmagthemes/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/postmagthemes-demo-import/inc/WPCLICommands.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/postmagthemes-demo-import/vendor/postmagthemes/wp-content-importer-v2/src/WXRImporter.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/postmagthemes-demo-import/demo/demo.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in postmagthemes-demo-import/assets to your readme.txt
postmagthemes-demo-import/postmagthemes-demo-import.php 92% from 13 tests
Analyzing the main PHP file in "PostmagThemes Demo Import" version 1.0.9
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,443 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,033 | 1,790 | 3,825 |
CSS | 1 | 69 | 11 | 284 |
JavaScript | 1 | 58 | 70 | 256 |
JSON | 2 | 0 | 0 | 64 |
Markdown | 1 | 11 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 29.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 287.00 |
Average method complexity | 4.17 |
▷ 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 | 177 | |
▷ Static methods | 36 | 20.34% |
▷ Public methods | 115 | 64.97% |
▷ Protected methods | 36 | 20.34% |
▷ Private methods | 26 | 14.69% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin