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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.45ms] Passed 4 tests
This is a short check of server-side resources used by Instant Shop for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.03 ▼1.99 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.00 ▼1.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.70 ▲0.88 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.40 ▼17.51 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.65 ▼0.43 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
isfw-one-page-checkout |
widget_theysaidso_widget |
isfw-processing |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
isfw-completed |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Instant Shop for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.21 ▼1.46 | 1.67 ▲0.07 | 41.44 ▼2.54 |
Dashboard /wp-admin | 2,206 ▲17 | 4.84 ▼0.13 | 108.49 ▲0.50 | 38.85 ▼0.88 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.03 ▲0.06 | 39.27 ▼2.24 | 34.02 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.14 ▲5.74 | 646.54 ▼14.07 | 57.14 ▼0.56 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.01 | 97.53 ▼7.08 | 41.96 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- isfw-one-page-checkout
- isfw-completed
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- isfw-processing
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-instant-shop/public/class-instant-shop-for-woocommerce-shop.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-instant-shop/admin/class-instant-shop-for-woocommerce-shop-tab.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: order again, order again for woocommerce, instant shop, single page checkout for woocommerce, one page checkout
wc-instant-shop/instant-shop-for-woocommerce.php 77% from 13 tests
Analyzing the main PHP file in "Instant Shop for WooCommerce" version 1.0.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-instant-shop.php" instead of "instant-shop-for-woocommerce.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected898 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 172 | 668 | 526 |
CSS | 1 | 10 | 0 | 230 |
JavaScript | 1 | 22 | 11 | 142 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin