Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼11.63ms] Passed 4 tests
Analyzing server-side resources used by FAQs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.48 ▼4.48 |
Dashboard /wp-admin | 3.54 ▲0.19 | 45.80 ▼23.97 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 45.07 ▲1.72 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.80 ▼19.80 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.02 ▲1.88 |
Categories /wp-admin/admin.php?page=faqs-categories | 3.40 | 36.87 |
Edit FAQs /wp-admin/admin.php?page=faqs-edit-faq | 3.39 | 34.45 |
Create Faqs /wp-admin/admin.php?page=faqs-create-faqs | 3.40 | 39.51 |
Add Question /wp-admin/admin.php?page=faqs-add-question | 3.39 | 35.21 |
Edit Question /wp-admin/admin.php?page=faqs-edit-question | 3.40 | 33.26 |
View FAQs /wp-admin/admin.php?page=faqs-view-faqs | 3.39 | 34.38 |
Dashboard /wp-admin/admin.php?page=faqs | 3.40 | 38.13 |
All FAQs /wp-admin/admin.php?page=faqs-all-faqs | 3.40 | 38.76 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_faqs_details |
wp_faqs_categories |
wp_faqs_questions |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FAQs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 14.77 ▲0.74 | 5.83 ▲3.95 | 42.19 ▲5.35 |
Dashboard /wp-admin | 2,226 ▲49 | 5.62 ▲0.03 | 83.25 ▼10.86 | 37.14 ▼4.20 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.04 ▲0.06 | 39.97 ▲3.37 | 35.95 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 22.51 ▼0.43 | 624.33 ▼95.60 | 61.04 ▼0.37 |
Media Library /wp-admin/upload.php | 1,422 ▲28 | 4.15 ▼0.05 | 99.05 ▼1.08 | 42.48 ▲0.78 |
Categories /wp-admin/admin.php?page=faqs-categories | 1,051 | 3.00 | 40.39 | 24.52 |
Edit FAQs /wp-admin/admin.php?page=faqs-edit-faq | 696 | 1.68 | 9.47 | 12.52 |
Create Faqs /wp-admin/admin.php?page=faqs-create-faqs | 1,055 | 3.02 | 47.82 | 29.51 |
Add Question /wp-admin/admin.php?page=faqs-add-question | 696 | 1.80 | 11.75 | 20.68 |
Edit Question /wp-admin/admin.php?page=faqs-edit-question | 696 | 1.68 | 11.17 | 14.52 |
View FAQs /wp-admin/admin.php?page=faqs-view-faqs | 696 | 1.68 | 10.56 | 18.89 |
Dashboard /wp-admin/admin.php?page=faqs | 1,011 | 2.98 | 46.17 | 29.96 |
All FAQs /wp-admin/admin.php?page=faqs-all-faqs | 1,159 | 3.08 | 50.79 | 28.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/faqs/pages/admin-view-faqs.php
- > /wp-content/plugins/faqs/pages/admin-edit-faq.php
- > /wp-content/plugins/faqs/pages/admin-categories.php
- > /wp-content/plugins/faqs/pages/admin-settings.php
- > /wp-content/plugins/faqs/pages/admin-add-question.php
- > /wp-content/plugins/faqs/pages/admin-edit-question.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/faqs/pages/admin-dashboard.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/faqs/includes/faqs-listtable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function faqs\\add_action() in wp-content/plugins/faqs/includes/post-requests.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/faqs/includes/faqs-question-listtable.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'faqs\\FAQsListTable' not found in wp-content/plugins/faqs/pages/admin-all-faqs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/faqs/pages/admin-create-faqs.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/faqs/includes/faqs-question-listtable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/faqs/faqs.php:47
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/faqs/includes/faqs-listtable.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/faqs/includes/faqs-question-listtable.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: add, print, list, featured, clients
faqs/faqs.php Passed 13 tests
The main PHP script in "FAQs" version 1.0.2 is automatically included on every request by WordPress
58 characters long description:
FAQs (faqs) helps you create FAQs section for your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,804 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 293 | 127 | 1,309 |
Sass | 3 | 44 | 0 | 207 |
CSS | 2 | 5 | 0 | 158 |
JavaScript | 7 | 31 | 6 | 130 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 22 | 32.84% |
▷ Public methods | 65 | 97.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.99% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/arrow-down.png | 0.29KB | 0.28KB | ▼ 4.71% |
assets/img/arrow-right.png | 0.30KB | 0.26KB | ▼ 15.43% |