Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼296.49ms] Passed 4 tests
This is a short check of server-side resources used by Sixa Add to Cart Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.25 | 56.68 ▲3.29 |
Dashboard /wp-admin | 3.60 ▲0.19 | 34.42 ▲0.53 |
Posts /wp-admin/edit.php | 3.83 ▲0.18 | 38.82 ▼9.27 |
Add New Post /wp-admin/post-new.php | 7.13 ▲0.16 | 92.68 ▼1,178.03 |
Media Library /wp-admin/upload.php | 3.54 ▲0.24 | 24.83 ▲0.80 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 104 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Sixa Add to Cart Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲63 | 16.21 ▲0.56 | 7.33 ▼0.37 | 2.12 ▼0.55 |
Dashboard /wp-admin | 2,895 ▲34 | 6.17 ▼0.06 | 120.73 ▼15.50 | 158.64 ▲0.06 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▲0.01 | 61.39 ▼3.30 | 140.49 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 15.57 ▲0.02 | 403.64 ▼1.83 | 154.28 ▲2.79 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.01 | 140.46 ▼24.76 | 179.84 ▼4.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require(wp-content/plugins/sixa-add-to-cart-block/trunk/vendor/sixach/wp-snippets/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sixa-add-to-cart-block/trunk/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/sixa-add-to-cart-block/trunk/vendor/sixach/wp-snippets/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sixa-add-to-cart-block/trunk/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
- > PHP Warning
require(wp-content/plugins/sixa-add-to-cart-block/vendor/sixach/wp-snippets/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sixa-add-to-cart-block/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/sixa-add-to-cart-block/vendor/sixach/wp-snippets/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sixa-add-to-cart-block/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 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
8 plugin tags: gutenberg, shop, button, block, ecommerce...
sixa-add-to-cart-block/index.php 77% from 13 tests
The primary PHP file in "Sixa Add to Cart Block" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sixa-add-to-cart-block.php" instead of "index.php")
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
No dangerous file extensions were detected3,914 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 831 | 2,576 | 3,730 |
JSON | 2 | 0 | 0 | 183 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 8 | 13.33% |
▷ Concrete classes | 52 | 86.67% |
▷ Final classes | 8 | 15.38% |
Methods | 424 | |
▷ Static methods | 224 | 52.83% |
▷ Public methods | 348 | 82.08% |
▷ Protected methods | 50 | 11.79% |
▷ Private methods | 26 | 6.13% |
Functions | 20 | |
▷ Named functions | 2 | 10.00% |
▷ Anonymous functions | 18 | 90.00% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 22 | 84.62% |
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
There were not PNG files found in your plugin