Benchmarks
Plugin footprint 65% from 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: ▼1.20MB] [CPU: ▼42.99ms] Passed 4 tests
A check of server-side resources used by Nice FAQs from NIT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.69 | 13.99 ▼25.80 |
Dashboard /wp-admin | 2.81 ▼0.50 | 16.24 ▼32.60 |
Posts /wp-admin/edit.php | 2.81 ▼0.55 | 16.53 ▼35.95 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.08 | 17.30 ▼77.59 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 17.41 ▼17.07 |
Add New /wp-admin/post-new.php?post_type=faqs | 2.81 | 18.90 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=categorias-faqs&post_type=faqs | 2.81 | 16.38 |
All FAQs /wp-admin/edit.php?post_type=faqs | 2.81 | 16.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Nice FAQs from NIT
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.60 ▼0.94 | 5.10 ▲2.49 | 39.53 ▼4.10 |
Dashboard /wp-admin | 2,242 ▲54 | 5.77 ▼0.13 | 95.00 ▼6.50 | 41.00 ▼3.50 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 1.99 ▼0.01 | 40.22 ▼2.86 | 35.98 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 17.83 ▼5.27 | 596.17 ▼36.81 | 51.77 ▲1.43 |
Media Library /wp-admin/upload.php | 1,421 ▲39 | 4.22 ▲0.03 | 96.77 ▼1.33 | 40.42 ▼1.83 |
Add New /wp-admin/post-new.php?post_type=faqs | 1,513 | 16.90 | 843.31 | 28.87 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=categorias-faqs&post_type=faqs | 1,295 | 2.14 | 27.08 | 27.46 |
All FAQs /wp-admin/edit.php?post_type=faqs | 1,091 | 1.95 | 30.63 | 29.37 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=faqs
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/nice-faqs-from-nit/views/list.php:8
- > PHP Fatal error
Uncaught Error: Interface 'NitFAQ\\Interfaces\\iWithTax' not found in wp-content/plugins/nice-faqs-from-nit/inc/cpt/FAQs.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function NitFAQ\\plugin_dir_path() in wp-content/plugins/nice-faqs-from-nit/index.php:18
- > PHP Fatal error
Uncaught Error: Interface 'NitFAQ\\Interfaces\\iTax' not found in wp-content/plugins/nice-faqs-from-nit/inc/tax/catFaqs.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: faqs, government, azores
nice-faqs-from-nit/index.php 92% from 13 tests
The primary PHP file in "Nice FAQs from NIT" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nice-faqs-from-nit.php" instead of "index.php")
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 detected531 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 115 | 71 | 366 |
CSS | 2 | 12 | 0 | 59 |
PO File | 1 | 15 | 20 | 50 |
JavaScript | 2 | 4 | 9 | 36 |
Markdown | 1 | 8 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 19 | 67.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 32.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin