Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.90ms] Passed 4 tests
An overview of server-side resources used by Simple FAQ Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.78 ▲1.34 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.98 ▼13.58 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.24 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.67 ▼28.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 38.16 ▲6.67 |
Add New /wp-admin/post-new.php?post_type=simple-faq | 3.40 | 48.42 |
FAQ /wp-admin/edit.php?post_type=simple-faq | 3.33 | 36.92 |
Topics /wp-admin/edit-tags.php?taxonomy=topics&post_type=simple-faq | 3.28 | 30.11 |
Server storage [IO: ▲0.05MB] [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: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple FAQ Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲160 | 13.47 ▼0.87 | 8.39 ▲6.82 | 42.24 ▲2.00 |
Dashboard /wp-admin | 2,229 ▲49 | 5.62 ▼0.01 | 97.11 ▲11.96 | 41.41 ▲1.80 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.98 ▼0.03 | 35.20 ▼2.21 | 32.83 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 23.33 ▲4.95 | 648.66 ▲24.82 | 55.64 ▼10.04 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.22 ▼0.00 | 94.54 ▼8.58 | 43.18 ▼1.62 |
Add New /wp-admin/post-new.php?post_type=simple-faq | 2,250 | 7.66 | 179.47 | 62.41 |
FAQ /wp-admin/edit.php?post_type=simple-faq | 1,099 | 1.96 | 31.47 | 26.88 |
Topics /wp-admin/edit-tags.php?taxonomy=topics&post_type=simple-faq | 1,274 | 2.12 | 27.33 | 25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-faq-manager/views/topics-sidebar.php
- > /wp-content/plugins/simple-faq-manager/views/shortcode-notice.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: topics in wp-content/plugins/simple-faq-manager/views/topics-sidebar.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/simple-faq-manager/views/topics-sidebar.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Simple_FAQ' not found in wp-content/plugins/simple-faq-manager/views/faq.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/simple-faq-manager/views/main-content.php:9
- > PHP Notice
Undefined variable: questions in wp-content/plugins/simple-faq-manager/views/main-content.php on line 9
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: faqs, frequently asked questions, faq
simple-faq-manager/simple-faq-manager.php Passed 13 tests
The main PHP file in "Simple FAQ Manager" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Adds an FAQ section to the site that can be displayed with a shortcode
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
Good job! No executable or dangerous file extensions detected355 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 73 | 59 | 190 |
Sass | 1 | 27 | 0 | 82 |
CSS | 1 | 4 | 1 | 63 |
JavaScript | 1 | 4 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 7 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 36.36% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin