Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.51MB] [CPU: ▼9.88ms] Passed 4 tests
A check of server-side resources used by MYFAQ Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 54.41 ▲9.40 |
Dashboard /wp-admin | 3.48 ▲0.17 | 62.91 ▲9.68 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 59.15 ▲2.20 |
Add New Post /wp-admin/post-new.php | 3.33 ▼2.56 | 45.94 ▼60.81 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 51.04 ▲13.27 |
Add New /wp-admin/post-new.php?post_type=my_faq | 3.32 | 42.75 |
help /wp-admin/edit.php?post_type=my_faq&page=myfaq_admin_page_help_fn | 3.37 | 42.91 |
settings /wp-admin/edit.php?post_type=my_faq&page=myfaq_admin_page_fn | 3.34 | 38.67 |
All FAQ's /wp-admin/edit.php?post_type=my_faq | 3.43 | 47.75 |
FAQ Category /wp-admin/edit-tags.php?taxonomy=g_MYFAQ_cat&post_type=my_faq | 3.39 | 43.48 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for MYFAQ Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.18 ▼0.17 | 1.99 ▲0.23 | 43.66 ▲1.66 |
Dashboard /wp-admin | 2,218 ▲41 | 5.56 ▼0.00 | 87.59 ▼3.90 | 94.96 ▲51.95 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 1.97 ▼0.03 | 35.38 ▼5.65 | 33.35 ▼6.01 |
Add New Post /wp-admin/post-new.php | 1,578 ▲50 | 22.10 ▼0.92 | 760.31 ▲120.42 | 50.23 ▼4.25 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.13 ▼0.05 | 106.80 ▼4.92 | 81.69 ▲33.55 |
Add New /wp-admin/post-new.php?post_type=my_faq | 2,350 | 7.52 | 186.69 | 146.34 |
help /wp-admin/edit.php?post_type=my_faq&page=myfaq_admin_page_help_fn | 821 | 1.99 | 26.37 | 35.35 |
settings /wp-admin/edit.php?post_type=my_faq&page=myfaq_admin_page_fn | 911 | 2.30 | 26.30 | 30.28 |
All FAQ's /wp-admin/edit.php?post_type=my_faq | 1,177 | 1.93 | 31.49 | 30.08 |
FAQ Category /wp-admin/edit-tags.php?taxonomy=g_MYFAQ_cat&post_type=my_faq | 1,309 | 2.12 | 27.23 | 33.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=my_faq
- > Notice in wp-content/plugins/myfaq/CONTENTS/PHP/all.fns.php+378
Undefined index: post_type
- > GET request to /wp-admin/edit.php?post_type=my_faq&page=myfaq_admin_page_fn
- > User deprecated in wp-includes/functions.php+5453
Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.
- > GET request to /wp-admin/edit.php?post_type=my_faq&page=myfaq_admin_page_fn
- > Notice in wp-content/plugins/myfaq/CONTENTS/PHP/all.fns.php+293
Undefined index: g_faq-per-page
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/myfaq/index.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/myfaq/CONTENTS/PHP/all.fns.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/myfaq/CONTENTS/load.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots need descriptions #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in myfaq/assets to your readme.txt
myfaq/index.php 92% from 13 tests
The main PHP file in "MYFAQ Plugin" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("myfaq.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected659 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 17 | 4 | 268 |
PHP | 4 | 35 | 37 | 135 |
PO File | 1 | 61 | 66 | 129 |
JavaScript | 5 | 5 | 0 | 126 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CONTENTS/PHP/white-wave.png | 3.65KB | 0.35KB | ▼ 90.50% |
CONTENTS/IMG/myfaq-icon-png.png | 0.70KB | 0.64KB | ▼ 8.50% |