Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼260.21ms] Passed 4 tests
An overview of server-side resources used by FAQz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.10 | 35.71 ▲4.30 |
Dashboard /wp-admin | 3.15 ▲0.10 | 42.70 ▼7.67 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 45.88 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 93.63 ▼1,031.86 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 31.68 ▼5.60 |
Add New /wp-admin/post-new.php?post_type=faqz | 3.20 | 51.32 |
All FAQs /wp-admin/edit.php?post_type=faqz | 3.14 | 33.73 |
Category /wp-admin/edit-tags.php?taxonomy=faqz_category&post_type=faqz | 3.09 | 31.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_faqz_search |
Browser metrics Passed 4 tests
A check of browser resources used by FAQz
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,693 ▲87 | 15.86 ▲0.24 | 7.64 ▼1.69 | 48.30 ▲2.58 |
Dashboard /wp-admin | 2,973 ▲123 | 6.07 ▲0.23 | 136.07 ▲5.11 | 96.55 ▼6.10 |
Posts /wp-admin/edit.php | 2,746 ▲43 | 2.70 ▼0.13 | 64.58 ▼7.20 | 90.79 ▼10.16 |
Add New Post /wp-admin/post-new.php | 1,507 ▼380 | 18.44 ▼0.47 | 349.30 ▼23.24 | 107.74 ▲1.63 |
Media Library /wp-admin/upload.php | 1,812 ▲43 | 4.99 ▲0.01 | 151.40 ▼11.80 | 111.70 ▼3.06 |
Add New /wp-admin/post-new.php?post_type=faqz | 3,108 | 8.93 | 212.55 | 139.62 |
All FAQs /wp-admin/edit.php?post_type=faqz | 1,437 | 2.62 | 64.80 | 70.49 |
Category /wp-admin/edit-tags.php?taxonomy=faqz_category&post_type=faqz | 1,741 | 2.51 | 60.52 | 65.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_faqz_search
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/faqz/faqz.php:42
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/faqz/includes/widgets.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: questions, faqs, answers, faq, knowledgebase
faqz/faqz.php Passed 13 tests
The primary PHP file in "FAQz" version 0.3 is used by WordPress to initiate all plugin functionality
54 characters long description:
Simple management of Frequently Asked Questions (FAQ).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected220 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 96 | 120 | 220 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin