Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼0.89ms] Passed 4 tests
A check of server-side resources used by FAQ And Answers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 45.78 ▲7.82 |
Dashboard /wp-admin | 3.69 ▲0.39 | 54.79 ▲5.36 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 49.32 ▼10.27 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 102.09 ▼4.01 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 42.72 ▲5.36 |
Developer /wp-admin/edit.php?post_type=faq_cpt&page=afaq-devloper-page | 3.52 | 37.37 |
Add New FAQ /wp-admin/post-new.php?post_type=faq_cpt | 3.59 | 49.79 |
FAQ And Answers /wp-admin/edit.php?post_type=faq_cpt | 3.59 | 40.42 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FAQ And Answers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.58 ▼0.81 | 8.47 ▲6.85 | 41.59 ▼2.58 |
Dashboard /wp-admin | 2,210 ▲33 | 5.59 ▼0.04 | 93.06 ▼2.85 | 86.36 ▲44.81 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 1.97 ▼0.03 | 37.77 ▼4.07 | 35.48 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,705 ▲177 | 22.38 ▼0.70 | 701.37 ▲7.07 | 42.73 ▼22.73 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.12 ▼0.13 | 103.81 ▼2.32 | 63.26 ▲16.86 |
Developer /wp-admin/edit.php?post_type=faq_cpt&page=afaq-devloper-page | 832 | 1.99 | 24.85 | 31.98 |
Add New FAQ /wp-admin/post-new.php?post_type=faq_cpt | 1,589 | 2.78 | 56.54 | 95.38 |
FAQ And Answers /wp-admin/edit.php?post_type=faq_cpt | 1,102 | 1.91 | 32.46 | 29.70 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/faq-and-answers/faq-and-answers.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/faq-and-answers/metabox/class-usage-demo.php:4
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/faq-and-answers/faq-and-answers.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: A description for screenshot #4 is missing in faq-and-answers/assets to your readme.txt
faq-and-answers/faq-and-answers.php Passed 13 tests
The main PHP file in "FAQ And Answers" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Create a nice frequently asked questions area in your wordpress website /blog.
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
There were no executable files found in this plugin9,472 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 919 | 1,027 | 7,198 |
PHP | 3 | 244 | 923 | 1,083 |
CSS | 7 | 156 | 99 | 1,003 |
PO File | 5 | 45 | 55 | 180 |
HTML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 248.00 |
▷ Minimum class complexity | 248.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
23 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metabox/meta-box-class/images/delete-16.png | 1.74KB | 0.90KB | ▼ 48.23% |
img/buynow.png | 22.06KB | 9.81KB | ▼ 55.52% |
metabox/meta-box-class/js/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
metabox/meta-box-class/images/remove.png | 0.09KB | 0.08KB | ▼ 8.79% |
img/upwork.png | 3.19KB | 1.05KB | ▼ 67.16% |