Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.89ms] Passed 4 tests
Server-side resources used by Theme Canary Demo Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.42 ▼1.42 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.46 ▼6.85 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.61 ▲1.40 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.26 ▼4.39 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.42 ▲1.10 |
Server storage [IO: ▲2.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme Canary Demo Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 13.61 ▼0.98 | 8.96 ▲7.20 | 37.76 ▼9.79 |
Dashboard /wp-admin | 2,235 ▲46 | 5.86 ▼0.04 | 97.71 ▼9.97 | 43.64 ▲0.10 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.10 ▲0.11 | 41.78 ▲2.47 | 40.95 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.49 ▲0.34 | 604.75 ▼49.14 | 60.65 ▼7.77 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.36 ▲0.17 | 96.00 ▼8.23 | 42.46 ▼2.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/theme-canary-demo-import/public/partials/demo-importer-public-display.php
- > /wp-content/plugins/theme-canary-demo-import/theme-canary-demo-importer.php
- > /wp-content/plugins/theme-canary-demo-import/admin/partials/admin-display.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/theme-canary-demo-import/includes/demo-importer.php:213
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/admin/demo-importer-admin.php:124
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/includes/files/magpage-pro.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/includes/files/magpage.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/includes/files/canary-led-pro.php:174
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/includes/files/snapfolio-pro.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/includes/files/canary-led.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-canary-demo-import/includes/files/snapfolio.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: "themecanary.com/plugins/theme-canary-demo-import"
theme-canary-demo-import/theme-canary-demo-importer.php 85% from 13 tests
"Theme Canary Demo Importer" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("theme-canary-demo-import.php" instead of "theme-canary-demo-importer.php")
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
Success! There were no dangerous files found in this plugin32,687 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 9 | 1,188 | 1,251 | 31,745 |
PHP | 18 | 218 | 558 | 829 |
CSS | 2 | 18 | 8 | 73 |
JavaScript | 2 | 6 | 29 | 40 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected