Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.13ms] Passed 4 tests
An overview of server-side resources used by Kings FAQ
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.81 ▼6.39 |
Dashboard /wp-admin | 3.34 ▲0.04 | 58.23 ▲4.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.42 ▼6.54 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.33 ▼13.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.77 ▼1.92 |
FAQ Category /wp-admin/edit-tags.php?taxonomy=kings_faq_cat&post_type=kings-faq-items | 3.26 | 34.60 |
Add New /wp-admin/post-new.php?post_type=kings-faq-items | 3.38 | 57.92 |
FAQ Items /wp-admin/edit.php?post_type=kings-faq-items | 3.31 | 38.24 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Kings FAQ
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.80 ▼0.80 | 7.85 ▲5.95 | 37.14 ▼10.81 |
Dashboard /wp-admin | 2,230 ▲50 | 5.65 ▼0.00 | 86.48 ▼15.81 | 38.82 ▼11.50 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.00 ▲0.04 | 36.40 ▼1.37 | 33.71 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 22.83 ▼0.23 | 667.94 ▼17.05 | 51.38 ▼7.69 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.24 ▲0.02 | 99.21 ▼3.22 | 45.87 ▲2.34 |
FAQ Category /wp-admin/edit-tags.php?taxonomy=kings_faq_cat&post_type=kings-faq-items | 1,306 | 2.13 | 27.48 | 29.98 |
Add New /wp-admin/post-new.php?post_type=kings-faq-items | 2,284 | 7.58 | 166.47 | 63.13 |
FAQ Items /wp-admin/edit.php?post_type=kings-faq-items | 1,113 | 1.91 | 30.65 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kings-faq/plugin-hook.php:19
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: faq, testimonial, jquery faq
kings-faq/plugin-hook.php 92% from 13 tests
The main file in "Kings FAQ" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kings-faq.php" instead of "plugin-hook.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 detected81 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 23 | 67 |
CSS | 1 | 4 | 0 | 7 |
JavaScript | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
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 | 5 | |
▷ Named functions | 5 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin