Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼5.31ms] Passed 4 tests
An overview of server-side resources used by WP DS FAQ Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 40.60 ▼0.55 |
Dashboard /wp-admin | 3.57 ▲0.23 | 48.71 ▼18.33 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 54.82 ▲3.50 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 90.37 ▼5.86 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 40.38 ▲4.45 |
FAQ Settings /wp-admin/options-general.php?page=wp-ds-faq-plus/wp-ds-faq.php&admin_page=1 | 3.97 | 36.07 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_dsfaq_name |
wp_dsfaq_quest |
New WordPress options |
---|
db_upgraded |
wp_ds_faq_array |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP DS FAQ Plus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.22 ▼0.13 | 1.80 ▼0.00 | 40.33 ▲2.08 |
Dashboard /wp-admin | 2,224 ▲47 | 5.63 ▲0.04 | 84.04 ▼5.26 | 40.10 ▲4.08 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.13 ▲0.14 | 36.85 ▲0.49 | 32.62 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,548 ▲18 | 23.31 ▲0.27 | 690.15 ▲77.03 | 54.47 ▲1.44 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.21 ▲0.03 | 101.00 ▲0.09 | 43.83 ▲1.51 |
FAQ Settings /wp-admin/options-general.php?page=wp-ds-faq-plus/wp-ds-faq.php&admin_page=1 | 1,401 | 2.00 | 26.60 | 51.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_dsfaq_quest
- wp_dsfaq_name
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- wp_ds_faq_array
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-ds-faq-plus/ajax.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > 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/wp-ds-faq-plus/wp-ds-faq.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ds-faq-plus/wp-ds-faq.php:28
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: answer, documentation, question, faq, page...
wp-ds-faq-plus/wp-ds-faq.php 77% from 13 tests
This is the main PHP file of "WP DS FAQ Plus" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder was not found ("/lang")
- Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-ds-faq-plus.php" instead of "wp-ds-faq.php")
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
There were no executable files found in this plugin1,950 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 348 | 407 | 1,808 |
CSS | 2 | 15 | 5 | 142 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 306.00 |
▷ Minimum class complexity | 306.00 |
▷ Maximum class complexity | 306.00 |
Average method complexity | 20.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected