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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.06ms] Passed 4 tests
Server-side resources used by Etsy Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 42.36 ▲1.39 |
Dashboard /wp-admin | 3.55 ▲0.25 | 294.20 ▲244.87 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.33 ▼3.15 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 85.82 ▼4.69 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.86 ▲2.22 |
Categories /wp-admin/edit-tags.php?taxonomy=etsy_category&post_type=etsy_products | 3.48 | 42.70 |
Add New /wp-admin/post-new.php?post_type=etsy_products | 4.06 | 58.80 |
Products /wp-admin/edit.php?post_type=etsy_products | 3.44 | 36.04 |
Etsy Importer Settings /wp-admin/edit.php?post_type=etsy_products&page=etsy_options | 3.44 | 34.04 |
Tags /wp-admin/edit-tags.php?taxonomy=etsy_tag&post_type=etsy_products | 3.39 | 32.14 |
Server storage [IO: ▲3.95MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 188 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Etsy Importer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.25 ▼1.04 | 1.95 ▲0.24 | 39.43 ▼1.62 |
Dashboard /wp-admin | 2,241 ▲53 | 5.85 ▲0.01 | 97.78 ▼7.36 | 39.45 ▼1.41 |
Posts /wp-admin/edit.php | 2,138 ▲52 | 2.04 ▲0.03 | 41.72 ▲2.30 | 37.87 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,592 ▲56 | 23.46 ▲0.35 | 609.38 ▼68.39 | 34.21 ▼20.44 |
Media Library /wp-admin/upload.php | 1,437 ▲55 | 4.23 ▼0.05 | 93.57 ▼2.23 | 43.27 ▲1.78 |
Categories /wp-admin/edit-tags.php?taxonomy=etsy_category&post_type=etsy_products | 1,313 | 2.27 | 26.27 | 28.37 |
Add New /wp-admin/post-new.php?post_type=etsy_products | 2,548 | 8.12 | 186.28 | 71.14 |
Products /wp-admin/edit.php?post_type=etsy_products | 1,127 | 1.99 | 38.61 | 28.35 |
Etsy Importer Settings /wp-admin/edit.php?post_type=etsy_products&page=etsy_options | 1,129 | 3.44 | 41.98 | 71.45 |
Tags /wp-admin/edit-tags.php?taxonomy=etsy_tag&post_type=etsy_products | 1,310 | 2.19 | 29.03 | 28.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/etsy-importer/CMB2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/etsy-importer/CMB2/tests/cmb-tests-base.php:3
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/etsy-importer/CMB2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/etsy-importer/CMB2/tests/cmb-tests-base.php:3
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/etsy-importer/CMB2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/etsy-importer/etsy-importer.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/etsy-importer/CMB2/init.php:80
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/etsy-importer/CMB2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/etsy-importer/includes/fields.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/etsy-importer/CMB2/bootstrap.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (In order to import your products, you first need to register an application with Etsy here: https://www.etsy.com/developers/register), #2 (Once you have created your app, click "Apps You've Made" in the sidebar and select your new app. On the app detail page, copy the value in the Keystring input field. This is your API Key.), #3 (To retrieve your shop's ID, begin by visiting the front page of your shop and viewing the source.), #4 (We want one specific line, whose meta name is "apple-itunes-app". The number you see below following "etsy://shop/" is your store ID.)
etsy-importer/etsy-importer.php Passed 13 tests
The primary PHP file in "Etsy Importer" version 1.4.2 is used by WordPress to initiate all plugin functionality
65 characters long description:
Import your Etsy store's products as posts in a custom post type.
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
Everything looks great! No dangerous files found in this plugin77,265 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 94 | 8,848 | 11,764 | 20,245 |
PHP | 24 | 1,434 | 2,282 | 4,673 |
CSS | 3 | 966 | 498 | 2,040 |
Sass | 9 | 158 | 24 | 1,069 |
JavaScript | 4 | 180 | 159 | 786 |
Markdown | 4 | 140 | 0 | 378 |
YAML | 2 | 9 | 0 | 148 |
JSON | 3 | 0 | 0 | 118 |
Bourne Shell | 1 | 17 | 6 | 67 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 336 | |
▷ Static methods | 17 | 5.06% |
▷ Public methods | 326 | 97.02% |
▷ Protected methods | 5 | 1.49% |
▷ Private methods | 5 | 1.49% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
CMB2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |