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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼9.02ms] Passed 4 tests
A check of server-side resources used by Toolbox for Asgaros Forum
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 42.94 ▲1.47 |
Dashboard /wp-admin | 3.74 ▲0.39 | 52.23 ▼8.21 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 49.12 ▼3.16 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 91.55 ▼26.16 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 36.88 ▲1.94 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
tfaf_plugin_settings |
widget_theysaidso_widget |
widget_recent-posts |
tfaf_custom_url |
widget_recent-comments |
tfaf_custom_menu |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Toolbox for Asgaros Forum
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.65 ▼0.57 | 1.65 ▼0.08 | 42.27 ▼4.79 |
Dashboard /wp-admin | 2,251 ▲63 | 5.80 ▼0.05 | 100.91 ▼9.80 | 44.70 ▲1.15 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.15 ▲0.11 | 34.54 ▼6.05 | 32.97 ▼7.22 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 18.29 ▼5.06 | 624.78 ▲17.17 | 54.40 ▼3.51 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.24 ▲0.01 | 100.20 ▼5.67 | 44.85 ▲1.63 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/toolbox-for-asgaros-forum/toolbox-for-asgaros-forum.php
- > /wp-content/plugins/toolbox-for-asgaros-forum/template/profile-tab.php
- 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'TFAF_PLUGIN_PATHInc/Api/SettingsApi.php' (include_path='.:/usr/share/php') in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Base/CustomMenuController.php on line 6
- > PHP Warning
require_once(TFAF_PLUGIN_PATHInc/Base/BaseController.php): failed to open stream: No such file or directory in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Api/Callbacks/CuCallbacks.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'TFAF_PLUGIN_PATHInc/Base/BaseController.php' (include_path='.:/usr/share/php') in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Api/Callbacks/AsCallbacks.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'TFAF_PLUGIN_PATHInc/Api/SettingsApi.php' (include_path='.:/usr/share/php') in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Base/AutoSubscription.php on line 5
- > PHP Warning
Use of undefined constant TFAF_PLUGIN_PATH - assumed 'TFAF_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Api/Callbacks/CuCallbacks.php on line 6
- > PHP Warning
require_once(TFAF_PLUGIN_PATHInc/Base/BaseController.php): failed to open stream: No such file or directory in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Api/Callbacks/AsCallbacks.php on line 6
- > PHP Warning
Use of undefined constant TFAF_PLUGIN_PATH - assumed 'TFAF_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Base/UltimateMemberIntegrationController.php on line 5
- > PHP Warning
require_once(TFAF_PLUGIN_PATHInc/Api/SettingsApi.php): failed to open stream: No such file or directory in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Base/CustomUrlController.php on line 5
- > PHP Warning
require_once(TFAF_PLUGIN_PATHInc/Base/BaseController.php): failed to open stream: No such file or directory in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Api/Callbacks/CmeCallbacks.php on line 6
- > PHP Warning
Use of undefined constant TFAF_PLUGIN_PATH - assumed 'TFAF_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/toolbox-for-asgaros-forum/Inc/Api/Callbacks/CmeCallbacks.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
4 plugin tags: toolbox, forum, ultimate member, asgarso forum
toolbox-for-asgaros-forum/toolbox-for-asgaros-forum.php 92% from 13 tests
This is the main PHP file of "Toolbox for Asgaros Forum" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,474 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 629 | 534 | 2,100 |
Sass | 6 | 48 | 2 | 244 |
JavaScript | 3 | 37 | 6 | 122 |
CSS | 4 | 2 | 2 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 104 | |
▷ Static methods | 6 | 5.77% |
▷ Public methods | 102 | 98.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.92% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/insert_image.png | 28.00KB | 11.12KB | ▼ 60.30% |
assets/images/image_inserted.png | 51.99KB | 19.66KB | ▼ 62.18% |
assets/images/upload_popup.png | 31.64KB | 12.61KB | ▼ 60.13% |