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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.87ms] Passed 4 tests
A check of server-side resources used by Nic-app stock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.80 ▲0.01 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.94 ▼8.72 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 56.62 ▲4.30 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 102.14 ▲7.78 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.85 ▼3.06 |
Scheduling /wp-admin/admin.php?page=nicappstock-scheduling | 3.29 | 35.81 |
Providers /wp-admin/edit.php?post_type=nicappstockproviders | 3.34 | 38.84 |
Import /wp-admin/admin.php?page=nicappstock-import | 3.31 | 35.44 |
Products /wp-admin/edit.php?post_type=nicappstockproducts | 3.34 | 39.37 |
Nic-app Stock /wp-admin/admin.php?page=nicappstock | 3.30 | 34.72 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Nic-app stock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲144 | 13.55 ▲0.29 | 4.80 ▲2.88 | 41.18 ▼6.98 |
Dashboard /wp-admin | 2,253 ▲47 | 4.96 ▲0.10 | 104.12 ▼10.18 | 79.39 ▲34.78 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.00 ▲0.00 | 41.05 ▲3.75 | 33.24 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,557 ▲43 | 23.17 ▲5.54 | 697.46 ▲47.95 | 55.96 ▲6.98 |
Media Library /wp-admin/upload.php | 1,432 ▲47 | 4.21 ▲0.02 | 95.38 ▼4.79 | 65.00 ▲21.74 |
Scheduling /wp-admin/admin.php?page=nicappstock-scheduling | 855 | 2.03 | 26.98 | 25.39 |
Providers /wp-admin/edit.php?post_type=nicappstockproviders | 1,069 | 1.94 | 32.79 | 34.06 |
Import /wp-admin/admin.php?page=nicappstock-import | 913 | 2.02 | 25.16 | 29.69 |
Products /wp-admin/edit.php?post_type=nicappstockproducts | 1,107 | 1.93 | 31.67 | 28.36 |
Nic-app Stock /wp-admin/admin.php?page=nicappstock | 861 | 2.02 | 24.53 | 27.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nic-app-stock/public/partials/nicappstock-public-display.php
- > /wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/bootstrap.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-stock/admin/partials/nicappstock-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/RequestTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/ResponseTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/ClientTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/BasicAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/HttpClientExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-stock/admin/partials/nicappstock-admin-import-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nic-app-stock/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-stock/admin/partials/nicappstock-admin-scheduling-display.php:17
- > 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 86% 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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== nic-app-stock ===
)
nic-app-stock/nicappstock.php 77% from 13 tests
The main file in "Nic-app stock" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("nic-app-stock.php" instead of "nicappstock.php")
- Description: The description should be shorter than 140 characters (currently 203 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,401 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 485 | 1,741 | 2,140 |
Markdown | 1 | 40 | 0 | 118 |
JSON | 3 | 0 | 0 | 90 |
XML | 2 | 1 | 0 | 26 |
YAML | 2 | 6 | 0 | 21 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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.24 |
Average class complexity | 8.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 5 | 2.81% |
▷ Public methods | 139 | 78.09% |
▷ Protected methods | 21 | 11.80% |
▷ Private methods | 18 | 10.11% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/NIC-APP-03-350x233.png | 42.81KB | 16.49KB | ▼ 61.48% |
admin/img/nic-app-logo.png | 7.16KB | 0.88KB | ▼ 87.78% |