Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'faq_install' not found or invalid function name
Server metrics [RAM: ▲0.03MB] [CPU: ▼138.15ms] Passed 4 tests
Server-side resources used by FAQ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.58 ▲10.49 |
Dashboard /wp-admin | 3.09 ▲0.04 | 48.68 ▲2.75 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 47.22 ▲4.01 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 87.04 ▼558.41 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.54 ▼0.93 |
Faq Category /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=faq | 3.03 | 32.02 |
All Faqs /wp-admin/edit.php?post_type=faq | 3.08 | 39.98 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=faq | 3.03 | 32.23 |
Add New /wp-admin/post-new.php?post_type=faq | 3.14 | 51.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for FAQ
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,852 ▲246 | 16.69 ▲1.08 | 11.56 ▲0.76 | 49.73 ▲2.22 |
Dashboard /wp-admin | 3,016 ▲82 | 5.92 ▼0.07 | 134.68 ▼8.44 | 112.24 ▼3.45 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.58 ▼0.13 | 66.59 ▲4.66 | 88.51 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,534 ▲36 | 18.77 ▼0.06 | 374.61 ▲2.25 | 108.48 ▼0.23 |
Media Library /wp-admin/upload.php | 1,860 ▲50 | 5.04 ▲0.03 | 150.43 ▲1.21 | 116.13 ▲2.17 |
Faq Category /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=faq | 1,785 | 2.50 | 55.79 | 79.75 |
All Faqs /wp-admin/edit.php?post_type=faq | 1,479 | 2.54 | 70.13 | 81.99 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=faq | 1,875 | 2.50 | 59.40 | 81.20 |
Add New /wp-admin/post-new.php?post_type=faq | 3,130 | 9.18 | 214.51 | 140.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/custom-faq/faq.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=faq
- > Network (severe)
wp-content/plugins/faq/js/function.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
custom-faq/faq.php 85% from 13 tests
The main file in "FAQ" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 265 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("custom-faq.php" instead of "faq.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,671 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 407 | 432 | 1,430 |
PHP | 2 | 8 | 9 | 192 |
JavaScript | 2 | 2 | 0 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin