Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/qhub-qa/qhub.php+109
Methods with the same name as their class will not be constructors in a future version of PHP; Qhub_Widget has a deprecated constructor
Server metrics [RAM: ▼1.70MB] [CPU: ▼57.47ms] Passed 4 tests
Analyzing server-side resources used by Qhub Q&A Wordpress Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 5.34 ▼36.48 |
Dashboard /wp-admin | 2.32 ▼1.03 | 6.22 ▼54.75 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 6.86 ▼42.49 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 5.82 ▼96.16 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 5.46 ▼29.88 |
Qhub Plugin Config /wp-admin/options-general.php?page=qhub-qa/qhub.php | 2.32 | 6.69 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_theysaidso_widget |
qhub_user_apikey |
qhub_default_showby |
widget_recent-posts |
widget_recent-comments |
qhub_default_title_txt |
qhub_default_before_question |
qhub_default_after_question |
qhub_default_showme |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Qhub Q&A Wordpress Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.71 ▲0.32 | 1.98 ▲0.34 | 43.48 ▼2.23 |
Dashboard /wp-admin | 2,202 ▲22 | 5.70 ▲0.00 | 86.82 ▼6.26 | 39.06 ▼6.18 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.05 | 35.89 ▼6.15 | 34.28 ▼3.35 |
Add New Post /wp-admin/post-new.php | 6,325 ▲4,794 | 25.93 ▲2.82 | 934.35 ▲289.10 | 62.84 ▲6.86 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.40 ▲0.07 | 98.10 ▲0.32 | 42.66 ▼4.57 |
Qhub Plugin Config /wp-admin/options-general.php?page=qhub-qa/qhub.php | 930 | 2.05 | 23.19 | 31.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Deprecated in wp-content/plugins/qhub-qa/qhub.php+109
Methods with the same name as their class will not be constructors in a future version of PHP; Qhub_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 15 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_qhub-widget
- qhub_default_api_order
- qhub_default_title_txt
- qhub_default_after_question
- qhub_default_showby
- can_compress_scripts
- widget_theysaidso_widget
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=qhub-qa/qhub.php
- > Deprecated in wp-content/plugins/qhub-qa/qhub.php+109
Methods with the same name as their class will not be constructors in a future version of PHP; Qhub_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=qhub-qa/qhub.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Qhub_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qhub-qa/qhub.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/qhub-qa/class.qhub.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/qhub-qa/qhub.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: answers, question and answer software, question and answer, questions, questions and answers software...
qhub-qa/qhub.php 92% from 13 tests
The main PHP script in "Qhub Q&A Wordpress Plugin" version 1.04.96 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("qhub-qa.php" instead of "qhub.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected639 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 128 | 86 | 639 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 14.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin