Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.96ms] Passed 4 tests
Analyzing server-side resources used by WPT Demo Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.94 ▼2.56 |
Dashboard /wp-admin | 3.35 ▲0.04 | 42.96 ▲0.20 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 42.78 ▼6.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.74 ▼7.20 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.04 ▲4.45 |
Import Demo Data /wp-admin/themes.php?page=pt-one-click-demo-import | 3.30 | 31.41 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WPT Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.18 ▼1.22 | 5.03 ▲3.34 | 43.67 ▲2.11 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.07 | 104.06 ▲3.80 | 39.87 ▼0.08 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 34.33 ▼0.47 | 35.84 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.75 ▲0.67 | 651.27 ▼3.84 | 52.42 ▼5.13 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.13 | 93.48 ▼12.78 | 43.79 ▲1.00 |
Import Demo Data /wp-admin/themes.php?page=pt-one-click-demo-import | 760 | 2.01 | 36.73 | 26.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpt-demo-importer/WPT-Demo-Importer.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PrimaTree\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/wpt-demo-importer/inc/Logger.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wpt-demo-importer/inc/WPCLICommands.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/wpt-demo-importer/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Class 'PrimaTree\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/wpt-demo-importer/inc/WXRImporter.php:12
- > PHP Fatal error
Uncaught Error: Class 'PrimaTree\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/wpt-demo-importer/vendor/primatree/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpt-demo-importer/views/plugin-page.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/wpt-demo-importer/vendor/primatree/wp-content-importer-v2/src/WXRImporter.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: primaapp, demo, import, wptrees
wpt-demo-importer/WPT-Demo-Importer.php 85% from 13 tests
"WPT Demo Importer" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpt-demo-importer.php" instead of "WPT-Demo-Importer.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected5,406 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,015 | 1,814 | 3,468 |
XML | 1 | 58 | 74 | 1,380 |
CSS | 1 | 69 | 12 | 284 |
JavaScript | 1 | 53 | 64 | 210 |
JSON | 2 | 0 | 0 | 64 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 173 | |
▷ Static methods | 35 | 20.23% |
▷ Public methods | 110 | 63.58% |
▷ Protected methods | 36 | 20.81% |
▷ Private methods | 27 | 15.61% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.17MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
settings/WPT-Demo-PrimaApp/ptdemom.png | 170.93KB | 162.67KB | ▼ 4.83% |