Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▼1.14MB] [CPU: ▼45.91ms] Passed 4 tests
Analyzing server-side resources used by Lightweight FAQs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.80 ▲3.55 |
Dashboard /wp-admin | 2.80 ▼0.50 | 17.08 ▼35.23 |
Posts /wp-admin/edit.php | 2.81 ▼0.55 | 16.49 ▼37.61 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.08 | 17.67 ▼89.73 |
Media Library /wp-admin/upload.php | 2.80 ▼0.42 | 16.68 ▼21.05 |
All FAQs /wp-admin/edit.php?post_type=faq | 2.81 | 13.41 |
Add New /wp-admin/post-new.php?post_type=faq | 2.81 | 18.77 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=faq | 2.81 | 18.70 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
category_children |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Lightweight FAQs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲176 | 13.98 ▼0.26 | 10.11 ▲8.06 | 43.71 ▼0.14 |
Dashboard /wp-admin | 2,258 ▲55 | 4.88 ▼0.99 | 108.04 ▲0.44 | 39.24 ▼11.07 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.06 ▼0.08 | 41.34 ▲2.87 | 35.16 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,574 ▲32 | 23.00 ▲4.82 | 634.92 ▼24.21 | 65.61 ▼8.27 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.17 ▼0.06 | 107.35 ▼13.72 | 44.06 ▼3.35 |
All FAQs /wp-admin/edit.php?post_type=faq | 1,142 | 1.95 | 31.19 | 33.39 |
Add New /wp-admin/post-new.php?post_type=faq | 2,309 | 7.78 | 178.46 | 67.39 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=faq | 1,483 | 2.15 | 31.86 | 40.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_deregister_script was called incorrectly. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- category_children
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=faq
- > User notice in wp-includes/functions.php+5905
Function wp_deregister_script was called incorrectly. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightweight-faqs/includes/faq-posttype.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lightweight-faqs/includes/faq-shortcode.php:69
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/lightweight-faqs/widgets/faqs-widget.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=faq
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=faq 1855:5 Uncaught ReferenceError: QTags is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #3 in lightweight-faqs/assets to your readme.txt
lightweight-faqs/lightweight-faqs.php 85% from 13 tests
The principal PHP file in "Lightweight FAQs" v. 0.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 153 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin343 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 39 | 139 | 283 |
CSS | 2 | 4 | 0 | 45 |
JavaScript | 3 | 2 | 7 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 2 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin