Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.84ms] Passed 4 tests
An overview of server-side resources used by Smart FAQ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.61 ▲2.47 |
Dashboard /wp-admin | 3.37 ▲0.07 | 40.54 ▼5.86 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 40.34 ▼6.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 77.84 ▼17.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 30.87 ▼1.85 |
Smart FAQ Settings /wp-admin/options-general.php?page=smartfaq-admin | 3.26 | 28.61 |
FAQ List /wp-admin/edit.php?post_type=smart_faq | 3.34 | 36.24 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=smart_faq | 3.29 | 37.16 |
Add New FAQ /wp-admin/post-new.php?post_type=smart_faq | 3.42 | 51.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
category_children |
can_compress_scripts |
smartfaq_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Smart FAQ
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲211 | 13.63 ▼0.82 | 5.25 ▲3.69 | 39.64 ▼2.84 |
Dashboard /wp-admin | 2,244 ▲53 | 5.87 ▼0.06 | 110.56 ▲3.53 | 43.52 ▲4.44 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.06 ▲0.05 | 39.28 ▼0.69 | 33.06 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 17.65 ▼5.49 | 598.34 ▼113.54 | 62.09 ▲7.29 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.26 ▲0.03 | 94.07 ▼7.81 | 39.71 ▼6.88 |
Smart FAQ Settings /wp-admin/options-general.php?page=smartfaq-admin | 860 | 2.07 | 26.50 | 28.32 |
FAQ List /wp-admin/edit.php?post_type=smart_faq | 1,123 | 1.93 | 30.72 | 30.65 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=smart_faq | 1,475 | 2.14 | 27.47 | 35.63 |
Add New FAQ /wp-admin/post-new.php?post_type=smart_faq | 2,439 | 7.65 | 167.89 | 66.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smart-faq/1.3/includes/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/smart-faq/1.3/smart-faq.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/smart-faq/smart-faq.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smart-faq/includes/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
smart-faq/smart-faq.php 92% from 13 tests
The main PHP file in "Smart FAQ" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 383 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected454 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 40 | 405 |
CSS | 1 | 0 | 0 | 29 |
JavaScript | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/open.png | 0.23KB | 0.15KB | ▼ 33.33% |
1.3/images/open.png | 0.23KB | 0.15KB | ▼ 33.33% |
images/close.png | 0.21KB | 0.13KB | ▼ 36.92% |
1.3/images/close.png | 0.21KB | 0.13KB | ▼ 36.92% |