Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼301.09ms] Passed 4 tests
An overview of server-side resources used by sixa FAQ Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.28 | 74.86 ▲17.43 |
Dashboard /wp-admin | 3.62 ▲0.22 | 39.46 ▲2.81 |
Posts /wp-admin/edit.php | 3.85 ▲0.21 | 43.96 ▲1.11 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.24 | 100.59 ▼1,209.00 |
Media Library /wp-admin/upload.php | 3.50 ▲0.21 | 30.05 ▲0.72 |
All FAQ Items /wp-admin/edit.php?post_type=faq-item | 3.60 | 32.37 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-item-category&post_type=faq-item | 3.62 | 30.75 |
Add new /wp-admin/post-new.php?post_type=faq-item | 7.21 | 93.73 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by sixa FAQ Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,839 ▲86 | 16.28 ▲0.18 | 6.62 ▲0.80 | 2.97 ▲0.19 |
Dashboard /wp-admin | 2,934 ▲73 | 6.18 ▲0.07 | 115.24 ▼19.13 | 154.22 ▼10.32 |
Posts /wp-admin/edit.php | 2,728 ▲40 | 3.37 ▲0.01 | 60.99 ▼1.41 | 140.07 ▼7.58 |
Add New Post /wp-admin/post-new.php | 1,764 ▲53 | 17.58 ▼3.14 | 433.71 ▼5.50 | 295.67 ▲131.21 |
Media Library /wp-admin/upload.php | 1,738 ▲40 | 5.51 ▲0.08 | 138.50 ▲2.78 | 182.08 ▼2.80 |
All FAQ Items /wp-admin/edit.php?post_type=faq-item | 1,428 | 3.28 | 62.37 | 111.43 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-item-category&post_type=faq-item | 1,664 | 2.79 | 54.61 | 112.27 |
Add new /wp-admin/post-new.php?post_type=faq-item | 9,676 | 18.38 | 604.94 | 147.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
require(wp-content/plugins/sixa-faq-block/vendor/sixach/wp-snippets/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sixa-faq-block/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/sixa-faq-block/vendor/sixach/wp-snippets/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sixa-faq-block/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
7 plugin tags: sixa, gutenberg, faq, answers, questions...
sixa-faq-block/index.php 85% from 13 tests
The entry point to "sixa FAQ Block" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sixa-faq-block.php" instead of "index.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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,843 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 812 | 2,521 | 3,678 |
JSON | 2 | 0 | 0 | 163 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 4 | 12.90% |
▷ Concrete classes | 27 | 87.10% |
▷ Final classes | 4 | 14.81% |
Methods | 202 | |
▷ Static methods | 99 | 49.01% |
▷ Public methods | 164 | 81.19% |
▷ Protected methods | 25 | 12.38% |
▷ Private methods | 13 | 6.44% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 8 | 80.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
PNG images were not found in this plugin