Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.85ms] Passed 4 tests
An overview of server-side resources used by Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.81 ▼5.27 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.42 ▼3.89 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.66 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.32 ▲2.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.83 ▼0.73 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.13 ▼1.45 | 1.71 ▼0.07 | 40.31 ▲3.31 |
Dashboard /wp-admin | 2,206 ▲17 | 5.86 ▲0.94 | 107.09 ▲0.33 | 42.95 ▲1.63 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▲0.01 | 39.77 ▲5.07 | 35.35 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.02 ▼5.13 | 612.27 ▼61.62 | 66.65 ▲10.78 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.17 ▼0.17 | 105.12 ▼35.13 | 43.36 ▼8.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qube-tools/includes/functions/demo-data.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
2 plugin tags: demo import, tools
qube-tools/qube-tools.php Passed 13 tests
The entry point to "Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes" version 1.0.3 is a PHP file that has certain tags in its header comment area
70 characters long description:
Extend Theme Features & One Click Demo Importer Plugin for Qube Themes
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
There were no executable files found in this plugin5,229 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 723 | 563 | 2,538 |
JavaScript | 2 | 306 | 187 | 1,465 |
CSS | 3 | 179 | 1 | 1,226 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 31.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 91 | |
▷ Static methods | 1 | 1.10% |
▷ Public methods | 83 | 91.21% |
▷ Protected methods | 1 | 1.10% |
▷ Private methods | 7 | 7.69% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin