Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.26ms] Passed 4 tests
Server-side resources used by WP Simple FAQs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.51 ▼3.79 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.49 ▼2.84 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 47.98 ▼0.66 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 100.21 ▲12.74 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.07 ▲6.27 |
FAQ Settings /wp-admin/edit.php?post_type=wpsimplefaqs&page=wp-simple-faqs/views/settings.php | 3.28 | 33.47 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faqscat&post_type=wpsimplefaqs | 3.31 | 34.06 |
Add New /wp-admin/post-new.php?post_type=wpsimplefaqs | 3.39 | 43.61 |
All FAQs /wp-admin/edit.php?post_type=wpsimplefaqs | 3.36 | 34.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Simple FAQs: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 13.65 ▼0.72 | 6.43 ▲4.55 | 37.31 ▼9.85 |
Dashboard /wp-admin | 2,241 ▲53 | 5.90 ▲0.05 | 106.28 ▼8.88 | 44.84 ▲1.78 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▲0.01 | 39.10 ▲2.28 | 34.80 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,571 ▲52 | 18.49 ▼4.56 | 606.17 ▼36.58 | 53.63 ▼6.39 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.17 ▼0.01 | 93.71 ▼7.19 | 44.83 ▼0.42 |
FAQ Settings /wp-admin/edit.php?post_type=wpsimplefaqs&page=wp-simple-faqs/views/settings.php | 965 | 2.07 | 25.25 | 26.04 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faqscat&post_type=wpsimplefaqs | 1,272 | 2.14 | 30.21 | 29.90 |
Add New /wp-admin/post-new.php?post_type=wpsimplefaqs | 2,119 | 6.11 | 154.64 | 61.23 |
All FAQs /wp-admin/edit.php?post_type=wpsimplefaqs | 1,207 | 1.93 | 30.88 | 31.24 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-simple-faqs/uninstall.php+16
Undefined variable: taxonomy
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-simple-faqs/views/faqs_cat.php
- > /wp-content/plugins/wp-simple-faqs/views/faqs_tags.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/wp-simple-faqs/views/faqs.php:8
- > PHP Notice
Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
- > PHP Notice
Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 7
- > PHP Notice
Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 8
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-simple-faqs/views/settings.php:5
- > PHP Notice
Trying to get property 'term_id' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
- > PHP Notice
Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
- > PHP Notice
Trying to get property 'term_id' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-simple-faqs/assets to your readme.txt
wp-simple-faqs/WpSimpleFaqs.php 85% from 13 tests
The entry point to "WP Simple FAQs" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-simple-faqs.php" instead of "WpSimpleFaqs.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin291 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 50 | 136 | 260 |
CSS | 1 | 9 | 8 | 26 |
JavaScript | 1 | 4 | 14 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin