Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼292.55ms] Passed 4 tests
A check of server-side resources used by Add FAQ on any page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 66.10 ▲4.98 |
Dashboard /wp-admin | 3.46 ▲0.05 | 37.97 ▼4.04 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 43.27 ▲1.32 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 108.65 ▼1,171.98 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 36.70 ▲4.51 |
Add New /wp-admin/post-new.php?post_type=add_faq_onp | 3.66 | 45.52 |
All Items /wp-admin/edit.php?post_type=add_faq_onp | 3.38 | 28.45 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Add FAQ on any page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲48 | 16.14 ▲0.39 | 6.31 ▲0.28 | 2.12 ▼0.73 |
Dashboard /wp-admin | 2,927 ▲69 | 6.10 ▼0.09 | 114.04 ▼15.61 | 153.72 ▼5.44 |
Posts /wp-admin/edit.php | 2,723 ▲29 | 3.23 ▼0.01 | 62.01 ▼7.55 | 133.23 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,783 ▲111 | 22.60 ▲1.37 | 406.51 ▼42.95 | 162.57 ▼27.00 |
Media Library /wp-admin/upload.php | 1,733 ▲35 | 5.51 ▲0.06 | 138.10 ▲4.45 | 181.14 ▲6.51 |
Add New /wp-admin/post-new.php?post_type=add_faq_onp | 2,809 | 9.91 | 188.25 | 190.75 |
All Items /wp-admin/edit.php?post_type=add_faq_onp | 1,420 | 3.17 | 60.60 | 132.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 issues were found
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Admin backend to create question and answer.)
add-faq-on-any-page/add-faq-on-any-page.php Passed 13 tests
Analyzing the main PHP file in "Add FAQ on any page" version 1.0
96 characters long description:
A plugin to create collapsible panels and shortcodes to call them, pretty usefull for FAQ pages.
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 detected1,252 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 33 | 50 | 1,142 |
PHP | 3 | 19 | 45 | 106 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.80MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 112.63KB | 33.03KB | ▼ 70.68% |
assets/screenshot-1.png | 213.79KB | 65.18KB | ▼ 69.51% |
(invalid) assets/icon-256x256.png | 13.88KB | 0.00KB | ▼ 100.00% |
assets/screenshot-3.png | 405.25KB | 120.20KB | ▼ 70.34% |
(invalid) assets/banner-772x250.png | 64.13KB | 0.00KB | ▼ 100.00% |