Benchmarks
Plugin footprint 82% 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: ▲1.85MB] [CPU: ▲16.18ms] Passed 4 tests
Server-side resources used by TS Demo Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.38 ▲5.91 | 69.37 ▲25.54 |
Dashboard /wp-admin | 5.14 ▲1.83 | 63.27 ▲14.23 |
Posts /wp-admin/edit.php | 5.26 ▲1.90 | 61.82 ▲12.99 |
Add New Post /wp-admin/post-new.php | 7.73 ▲1.84 | 110.19 ▲18.97 |
Media Library /wp-admin/upload.php | 5.05 ▲1.81 | 53.43 ▲18.54 |
Tags /wp-admin/edit-tags.php?taxonomy=eventtags&post_type=events | 5.07 | 54.90 |
Add New /wp-admin/post-new.php?post_type=projects | 5.20 | 63.51 |
Testimonial /wp-admin/edit.php?post_type=testimonials | 5.11 | 54.53 |
Team /wp-admin/edit.php?post_type=team | 5.11 | 55.33 |
License Activation /wp-admin/themes.php?page=ts-demoimporter-license | 5.04 | 51.10 |
Categories /wp-admin/edit-tags.php?taxonomy=eventscategory&post_type=events | 5.07 | 49.99 |
Add New /wp-admin/post-new.php?post_type=testimonials | 5.18 | 67.17 |
Services /wp-admin/edit.php?post_type=services | 5.11 | 52.19 |
TS Setup Wizard /wp-admin/themes.php?page=tsdemoimporter-wizard | 5.05 | 63.46 |
Add New /wp-admin/post-new.php?post_type=team | 5.18 | 59.72 |
Server storage [IO: ▲96.24MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 96.24MB)
Filesystem: 565 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_tdi_widget |
widget_vw_bakery_social_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_ts_demo_importer_cta_banner_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for TS Demo Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,306 ▲520 | 15.42 ▲0.81 | 13.02 ▲11.01 | 40.56 ▼4.05 |
Dashboard /wp-admin | 2,528 ▲351 | 6.32 ▲0.70 | 115.18 ▲22.03 | 41.78 ▼0.63 |
Posts /wp-admin/edit.php | 2,460 ▲360 | 3.46 ▲1.48 | 53.03 ▲17.23 | 32.82 ▼2.82 |
Add New Post /wp-admin/post-new.php | 6,436 ▲4,908 | 26.03 ▲3.03 | 886.66 ▲181.05 | 39.01 ▼15.18 |
Media Library /wp-admin/upload.php | 1,596 ▲196 | 4.09 ▼0.14 | 88.69 ▼9.08 | 46.95 ▲4.99 |
Tags /wp-admin/edit-tags.php?taxonomy=eventtags&post_type=events | 1,633 | 3.48 | 48.25 | 31.10 |
Add New /wp-admin/post-new.php?post_type=projects | 2,913 | 7.94 | 209.62 | 72.96 |
Testimonial /wp-admin/edit.php?post_type=testimonials | 1,424 | 3.50 | 52.60 | 28.67 |
Team /wp-admin/edit.php?post_type=team | 1,421 | 3.54 | 52.24 | 29.28 |
License Activation /wp-admin/themes.php?page=ts-demoimporter-license | 1,187 | 3.27 | 43.87 | 38.71 |
Categories /wp-admin/edit-tags.php?taxonomy=eventscategory&post_type=events | 1,630 | 3.46 | 48.60 | 32.98 |
Add New /wp-admin/post-new.php?post_type=testimonials | 2,559 | 7.85 | 204.70 | 65.35 |
Services /wp-admin/edit.php?post_type=services | 1,455 | 3.49 | 51.06 | 30.53 |
TS Setup Wizard /wp-admin/themes.php?page=tsdemoimporter-wizard | 1,513 | 3.39 | 51.22 | 118.34 |
Add New /wp-admin/post-new.php?post_type=team | 2,585 | 7.79 | 167.09 | 54.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_vw_bakery_social_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_ts_demo_importer_cta_banner_widget
- widget_theysaidso_widget
- db_upgraded
- widget_tdi_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 91× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ts-demo-importer/template-parts/home/section-pricing-plan.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ts-demo-importer/inc/customize/customizer.php:138
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/ts-demo-importer/inc/customize/sections/customizer-part-inner-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ts-demo-importer/template-parts/home/section-hiring-features.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ts-demo-importer/template-parts/home/section-our-projects-tab.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ts-demo-importer/page-template/home-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ts-demo-importer/template-parts/home/section-our-brands.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ts-demo-importer/template-parts/home/section-banner.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ts-demo-importer/template-parts/home/section-our-services.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ts-demo-importer/page-template/blog-fullwidth-extend.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=team
- > Network (severe)
wp-content/plugins/ts-demo-importer/posttype//js/img-metabox.js?ver=0.1.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: customizer
ts-demo-importer/ts-demo-importer.php Passed 13 tests
"TS Demo Importer" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
TS Demo Importer will allow you to add features of customizer and widgets. Which will be visible on front page of site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin80,065 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 99 | 4,629 | 4,321 | 36,267 |
CSS | 39 | 1,546 | 629 | 24,790 |
JavaScript | 19 | 1,587 | 1,413 | 9,704 |
SVG | 5 | 0 | 0 | 9,304 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 232.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 214 | |
▷ Static methods | 7 | 3.27% |
▷ Public methods | 184 | 85.98% |
▷ Protected methods | 29 | 13.55% |
▷ Private methods | 1 | 0.47% |
Functions | 84 | |
▷ Named functions | 84 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 11 | 78.57% |
▷ Class constants | 3 | 21.43% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
334 PNG files occupy 83.13MB with 27.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Start-up-Theme-Assets/Clients/logo1.png | 9.20KB | 4.09KB | ▼ 55.56% |
assets/images/Homepage/Events/November.png | 114.49KB | 113.82KB | ▼ 0.59% |
assets/images/Homepage/Video/play-button.png | 1.89KB | 1.14KB | ▼ 39.66% |
theme-wizard/assets/images/home_two.png | 218.17KB | 236.50KB | 0.00% |
assets/images/Homepage/PersonalizedSupport/memphis-circle-shape.png | 14.49KB | 4.23KB | ▼ 70.79% |