Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.93MB] [CPU: ▼34.43ms] Passed 4 tests
Analyzing server-side resources used by Simple Theme Demo Importer Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.75 ▼6.79 |
Dashboard /wp-admin | 3.02 ▼0.29 | 25.81 ▼21.33 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 28.35 ▼21.20 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.87 | 28.50 ▼78.26 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 22.40 ▼16.94 |
Status /wp-admin/admin.php?page=simple-theme-demo-importer-status-page | 3.02 | 24.12 |
Import Demos /wp-admin/admin.php?page=simple-theme-demo-importer | 3.02 | 25.85 |
Server storage [IO: ▲8.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Theme Demo Importer Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 14.20 ▼0.16 | 1.83 ▼0.17 | 42.54 ▼2.11 |
Dashboard /wp-admin | 2,272 ▲92 | 5.66 ▼0.02 | 99.59 ▲10.51 | 77.97 ▲37.88 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.04 ▲0.03 | 39.71 ▲3.28 | 35.87 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 23.19 ▲0.11 | 726.62 ▲108.53 | 83.33 ▲27.28 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.24 ▼0.08 | 98.68 ▼9.93 | 75.12 ▲28.37 |
Status /wp-admin/admin.php?page=simple-theme-demo-importer-status-page | 966 | 2.03 | 23.28 | 28.98 |
Import Demos /wp-admin/admin.php?page=simple-theme-demo-importer | 842 | 2.07 | 24.74 | 31.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=simple-theme-demo-importer
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php
- > /wp-content/plugins/simple-theme-demo-importer/templates/dashboard-notice.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'plugin_description' of non-object in wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php on line 5
- > PHP Warning
Use of undefined constant SIMPLE_THEME_DEMO_IMPORT_SUPPORT_LINK - assumed 'SIMPLE_THEME_DEMO_IMPORT_SUPPORT_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php on line 7
- > PHP Notice
Undefined variable: promotion in wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php on line 5
- > PHP Notice
Undefined variable: promotion in wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/simple-theme-demo-importer/templates/status-report.php:2
- > PHP Warning
Use of undefined constant SIMPLE_THEME_DEMO_IMPORT_PREMIUM_LINK - assumed 'SIMPLE_THEME_DEMO_IMPORT_PREMIUM_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php on line 5
- > PHP Notice
Trying to get property 'promotional_title' of non-object in wp-content/plugins/simple-theme-demo-importer/templates/promotional-notice.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: demo importer, simple theme demo importer, guideline, theme demo, wordpressorg...
simple-theme-demo-importer/simple-theme-demo-importer.php 92% from 13 tests
The principal PHP file in "Simple Theme Demo Importer Plugin" v. 1.1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin11,240 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 292 | 23 | 9,016 |
PHP | 6 | 288 | 522 | 1,942 |
CSS | 1 | 35 | 0 | 230 |
JSON | 3 | 0 | 0 | 27 |
JavaScript | 1 | 5 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 59.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 5.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 70 | 98.59% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/screenshot_4.png | 20.37KB | 5.05KB | ▼ 75.19% |
screenshot/screenshot_1.png | 32.89KB | 8.38KB | ▼ 74.52% |
screenshot/screenshot_5.png | 38.09KB | 8.12KB | ▼ 78.68% |
importer/demos/main/screenshot.png | 0.81KB | 0.77KB | ▼ 5.17% |
screenshot/screenshot_2.png | 40.68KB | 9.40KB | ▼ 76.89% |