Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/sema-api/sema-api.php+918
Undefined index: sema_token
Server metrics [RAM: ▼0.63MB] [CPU: ▼9.36ms] Passed 4 tests
An overview of server-side resources used by SEMA API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 57.40 ▲16.93 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.83 ▲2.14 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.11 ▲1.50 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 38.44 ▼50.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 43.97 ▲9.40 |
SEMA Import /wp-admin/options-general.php?page=sema_import | 3.35 | 35.75 |
SEMA Setting /wp-admin/options-general.php?page=sema_setting | 3.21 | 34.01 |
Server storage [IO: ▲1.62MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_sema_fitment |
wp_sema_products |
wp_sema_attr_taxonomy |
wp_sema_brands |
wp_sema_parts |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
sema_plugin_version |
theysaidso_admin_options |
sema_settings |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SEMA API
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,058 ▲323 | 14.56 ▲0.19 | 8.79 ▲6.79 | 45.86 ▼1.50 |
Dashboard /wp-admin | 2,251 ▲63 | 5.49 ▼0.53 | 119.27 ▲10.36 | 44.55 ▲6.38 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.56 ▲0.50 | 40.00 ▼0.49 | 30.05 ▼8.97 |
Add New Post /wp-admin/post-new.php | 1,717 ▲175 | 23.21 ▲5.09 | 667.69 ▲64.30 | 37.07 ▼30.31 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.74 ▲0.52 | 91.10 ▼5.81 | 42.85 ▼2.49 |
SEMA Import /wp-admin/options-general.php?page=sema_import | 1,061 | 2.43 | 45.64 | 29.83 |
SEMA Setting /wp-admin/options-general.php?page=sema_setting | 1,206 | 2.63 | 46.55 | 29.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- sema_plugin_version
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=sema_import
- > Notice in wp-content/plugins/sema-api/includes/views/html-sema-import-greeting.php+16
Undefined index: siteid
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+350
Undefined index: sema_token
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+438
Undefined index: sema_aaia
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+269
Undefined index: Success
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+284
Undefined variable: membership
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+353
Undefined index: sema_username
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+354
Undefined index: sema_password
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+360
Undefined index: sema_user
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+368
Undefined variable: setting_saved
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+369
Undefined variable: errormessage
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+439
Undefined index: sema_membership
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+441
Undefined index: rebuild_fitment_point
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Notice in wp-content/plugins/sema-api/options.php+443
Undefined index: category_exist
SRP 50% 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
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sema-api/includes/views/html-sema-fitment-new.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sema-api/options.php:27
- > PHP Notice
Undefined index: fitmentid in wp-content/plugins/sema-api/includes/views/html-sema-fitment-edit.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sema-api/options.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sema-api/includes/views/html-sema-import-greeting.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_placeholder_img_src() in wp-content/plugins/sema-api/includes/views/html-sema-fitment-edit.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/sema-api/includes/views/html-sema-fitment.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sema_setting
- > Network (severe)
wp-content/plugins/woocommerce/assets/css/admin.css?ver=6.3.1 - 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: auto parts search, year make model search, product import, auto parts filter, year make model filter...
sema-api/sema-api.php Passed 13 tests
The main file in "SEMA API" v. 4.66 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Via SEMA API, add auto parts search to your wordpress and import products to your WooCommerce Store.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin33,912 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,261 | 4,850 | 18,013 |
CSS | 10 | 2,094 | 313 | 10,477 |
PHP | 11 | 982 | 1,051 | 5,422 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 149)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 132.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 462.00 |
Average method complexity | 9.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 149.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 51 | 96.23% |
▷ Protected methods | 1 | 1.89% |
▷ Private methods | 1 | 1.89% |
Functions | 28 | |
▷ Named functions | 26 | 92.86% |
▷ Anonymous functions | 2 | 7.14% |
Constants | 2 | |
▷ Global constants | 2 | 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
21 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/insertpages_toolbar_icon_backup.png | 1.29KB | 0.50KB | ▼ 61.03% |
images/wf-success.png | 3.24KB | 0.59KB | ▼ 81.90% |
images/pdf_icon.png | 1.27KB | 0.44KB | ▼ 65.82% |
images/wf-import.png | 1.62KB | 1.39KB | ▼ 14.10% |
images/32px.png | 5.53KB | 2.93KB | ▼ 47.10% |