Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/superior-faq/superior-faq.php+885
Undefined property: Superior_FAQ::$version_field_name
Server metrics [RAM: ▲0.11MB] [CPU: ▼324.36ms] Passed 4 tests
An overview of server-side resources used by Superior FAQ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.20 | 53.14 ▼5.15 |
Dashboard /wp-admin | 3.55 ▲0.14 | 34.34 ▼1.29 |
Posts /wp-admin/edit.php | 3.78 ▲0.13 | 47.40 ▲9.21 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.04 | 98.11 ▼1,285.31 |
Media Library /wp-admin/upload.php | 3.43 ▲0.13 | 24.10 ▼5.70 |
Shortcode Builder /wp-admin/edit.php?post_type=faq&page=sf-shortcode-builder | 3.47 | 26.15 |
All FAQs /wp-admin/edit.php?post_type=faq | 3.53 | 27.38 |
Add New /wp-admin/post-new.php?post_type=faq | 3.81 | 45.97 |
Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq | 3.44 | 25.96 |
Settings /wp-admin/edit.php?post_type=faq&page=sf-settings | 3.64 | 28.75 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
superior_faq_settings |
Browser metrics Passed 4 tests
Superior FAQ: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,962 ▲240 | 16.54 ▲0.50 | 8.75 ▲1.97 | 29.74 ▲27.37 |
Dashboard /wp-admin | 2,935 ▲81 | 6.01 ▼0.24 | 122.28 ▼12.21 | 154.96 ▼11.92 |
Posts /wp-admin/edit.php | 2,740 ▲49 | 3.23 ▼0.00 | 61.12 ▼2.26 | 173.10 ▲19.53 |
Add New Post /wp-admin/post-new.php | 1,693 ▲104 | 16.05 ▼1.70 | 416.58 ▼69.83 | 184.92 ▼4.05 |
Media Library /wp-admin/upload.php | 1,742 ▲44 | 5.56 ▲0.03 | 162.22 ▲22.30 | 237.55 ▲44.48 |
Shortcode Builder /wp-admin/edit.php?post_type=faq&page=sf-shortcode-builder | 1,715 | 3.01 | 68.23 | 147.07 |
All FAQs /wp-admin/edit.php?post_type=faq | 1,452 | 3.17 | 59.99 | 116.41 |
Add New /wp-admin/post-new.php?post_type=faq | 3,495 | 10.19 | 208.74 | 210.27 |
Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq | 1,674 | 2.76 | 55.96 | 111.62 |
Settings /wp-admin/edit.php?post_type=faq&page=sf-settings | 1,255 | 2.66 | 60.22 | 126.54 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- superior_faq_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/superior-faq/superior-faq.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/superior-faq/admin/shortcode-builder.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/superior-faq/admin/settings.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)
No browser issues were found
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
10 plugin tags: dee-linking, search, permalink, accordion, voting...
superior-faq/superior-faq.php Passed 13 tests
"Superior FAQ" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Create your own FAQs easily and place them anywhere in your post or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,867 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 288 | 48 | 927 |
CSS | 3 | 59 | 31 | 575 |
JavaScript | 2 | 134 | 147 | 365 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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 |
admin/css/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
admin/css/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |