Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.92ms] Passed 4 tests
This is a short check of server-side resources used by Add FAQ on any page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.15 ▼2.98 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.14 ▼13.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.13 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.09 ▼2.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.67 ▼0.82 |
Add New /wp-admin/post-new.php?post_type=add_faq_onp | 3.36 | 43.87 |
All Items /wp-admin/edit.php?post_type=add_faq_onp | 3.29 | 43.05 |
Server storage [IO: ▲0.84MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Add FAQ on any page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 14.76 ▲0.41 | 1.88 ▲0.06 | 36.12 ▼3.69 |
Dashboard /wp-admin | 2,233 ▲42 | 4.91 ▼0.98 | 109.91 ▲9.56 | 38.31 ▼5.40 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▲0.03 | 38.91 ▲4.46 | 35.47 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,556 ▲34 | 22.97 ▼0.21 | 657.12 ▼11.16 | 48.12 ▼14.35 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.19 ▼0.03 | 93.77 ▼1.26 | 40.53 ▼3.49 |
Add New /wp-admin/post-new.php?post_type=add_faq_onp | 2,163 | 7.60 | 172.45 | 62.43 |
All Items /wp-admin/edit.php?post_type=add_faq_onp | 1,099 | 2.02 | 34.56 | 32.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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)
Good news, no errors were detected
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Admin backend to create question and answer.) image not found
add-faq-on-any-page/add-faq-on-any-page.php Passed 13 tests
The primary PHP file in "Add FAQ on any page" version 1.0 is used by WordPress to initiate all plugin functionality
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,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
There are no cyclomatic complexity problems detected for this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |
(invalid) assets/banner-772x250.png | 64.13KB | 0.00KB | ▼ 100.00% |
assets/screenshot-3.png | 405.25KB | 120.20KB | ▼ 70.34% |
(invalid) assets/icon-128x128.png | 5.56KB | 0.00KB | ▼ 100.00% |
assets/screenshot-1.png | 213.79KB | 65.18KB | ▼ 69.51% |