Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼6.68ms] Passed 4 tests
An overview of server-side resources used by Mos FAQs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 40.47 ▼8.66 |
Dashboard /wp-admin | 3.77 ▲0.47 | 50.28 ▼0.10 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 50.74 ▲3.00 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 89.19 ▼20.95 |
Media Library /wp-admin/upload.php | 3.69 ▲0.47 | 43.33 ▲6.20 |
Tags /wp-admin/edit-tags.php?taxonomy=faq-tag&post_type=qa | 3.69 | 36.67 |
All FAQs /wp-admin/edit.php?post_type=qa | 3.74 | 40.83 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=qa | 3.69 | 37.77 |
Settings /wp-admin/edit.php?post_type=qa&page=faq_settings | 3.67 | 37.32 |
Add New /wp-admin/post-new.php?post_type=qa | 3.90 | 59.49 |
Server storage [IO: ▲4.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 422 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_mos-faqs-widget-default |
Browser metrics Passed 4 tests
An overview of browser requirements for Mos FAQs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲210 | 13.97 ▼0.60 | 9.26 ▲7.53 | 39.96 ▼3.09 |
Dashboard /wp-admin | 2,245 ▲57 | 5.88 ▲0.04 | 105.32 ▲1.74 | 42.02 ▼4.10 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.00 ▼0.01 | 35.38 ▼0.27 | 35.88 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,570 ▲56 | 22.99 ▲5.41 | 689.00 ▲2.00 | 52.87 ▼1.39 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.22 ▲0.04 | 94.95 ▼7.58 | 45.08 ▼0.54 |
Tags /wp-admin/edit-tags.php?taxonomy=faq-tag&post_type=qa | 1,270 | 2.14 | 28.56 | 28.25 |
All FAQs /wp-admin/edit.php?post_type=qa | 1,203 | 2.33 | 34.95 | 33.48 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=qa | 1,301 | 2.14 | 28.06 | 27.64 |
Settings /wp-admin/edit.php?post_type=qa&page=faq_settings | 4,092 | 3.07 | 76.91 | 58.57 |
Add New /wp-admin/post-new.php?post_type=qa | 2,787 | 7.88 | 181.75 | 75.27 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_mos-faqs-widget-default
- db_upgraded
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mos-faqs/plugins/index.php
- > /wp-content/plugins/mos-faqs/css/index.php
- > /wp-content/plugins/mos-faqs/js/index.php
- > /wp-content/plugins/mos-faqs/fonts/index.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-settings-old.php:234
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-functions.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-vc-element.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-widgets.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-taxonomy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-settings.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-faqs/mos-faq-post-types.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
mos-faqs/mos-faq.php 92% from 13 tests
The primary PHP file in "Mos FAQs" version 2.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("mos-faqs.php" instead of "mos-faq.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin72,244 lines of code in 409 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 221 | 6,007 | 4,119 | 45,682 |
HTML | 130 | 2,562 | 31 | 14,038 |
CSS | 19 | 135 | 57 | 3,606 |
PHP | 10 | 98 | 66 | 2,721 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/colorpicker/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
images/mos-vc.png | 3.73KB | 1.09KB | ▼ 70.79% |