Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.16ms] Passed 4 tests
A check of server-side resources used by WooCommerce 18app
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.81 ▲3.50 |
Dashboard /wp-admin | 3.33 ▼0.02 | 52.20 ▼18.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.47 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.91 ▼26.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.55 ▲4.35 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce 18app
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.26 | 1.67 ▼0.05 | 44.26 ▲0.29 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.05 | 83.29 ▼6.56 | 39.82 ▼1.64 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▼0.01 | 38.01 ▼7.08 | 36.11 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.92 ▼0.80 | 656.88 ▼19.13 | 55.63 ▼4.74 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▲0.02 | 111.30 ▲0.13 | 47.30 ▲3.12 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
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
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-18app/includes/class-18app-admin.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-18app/wc-18app.php:100
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-18app/includes/class-18app-gateway.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-18app/includes/ilghera-notice/class-ilghera-notice.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-18app/includes/class-18app.php:23
- > PHP Fatal error
Uncaught Error: Class 'Ilghera_Notice' not found in wp-content/plugins/wc-18app/includes/ilghera-notice/extension.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
9 plugin tags: woocommerce, bonus cultura, shop, e-commerce, payment...
wc-18app/wc-18app.php 92% from 13 tests
The primary PHP file in "WooCommerce 18app" version 1.3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 detected1,395 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 437 | 364 | 815 |
CSS | 5 | 60 | 19 | 293 |
JavaScript | 3 | 56 | 34 | 177 |
XML | 1 | 0 | 0 | 110 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 4 | 10.26% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.56% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/tzCheckbox/img/line_bg.png | 0.26KB | 0.23KB | ▼ 9.16% |
js/tzCheckbox/jquery.tzCheckbox/background.png | 4.96KB | 2.59KB | ▼ 47.82% |
js/tzCheckbox/jquery.tzCheckbox/background-small.png | 3.88KB | 2.22KB | ▼ 42.84% |
images/add-cat.png | 0.49KB | 0.25KB | ▼ 49.40% |
images/remove-cat-hover.png | 0.46KB | 0.21KB | ▼ 54.08% |