78% toolbox-for-asgaros-forum

Code Review | Toolbox for Asgaros Forum

WordPress plugin Toolbox for Asgaros Forum scored78%from 54 tests.

About plugin

  • Plugin page: toolbox-for-asgar...
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: May 28, 2020
  • Latest release: Mar 25, 2021
  • Number of updates: 33
  • Update frequency: every 9.1 days
  • Top authors: qualmy91 (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

1,000+ active /9,970 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4342.94 ▲1.47
Dashboard /wp-admin3.74 ▲0.3952.23 ▼8.21
Posts /wp-admin/edit.php3.79 ▲0.4349.12 ▼3.16
Add New Post /wp-admin/post-new.php6.28 ▲0.3991.55 ▼26.16
Media Library /wp-admin/upload.php3.60 ▲0.3736.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.65 ▼0.571.65 ▼0.0842.27 ▼4.79
Dashboard /wp-admin2,251 ▲635.80 ▼0.05100.91 ▼9.8044.70 ▲1.15
Posts /wp-admin/edit.php2,133 ▲412.15 ▲0.1134.54 ▼6.0532.97 ▼7.22
Add New Post /wp-admin/post-new.php1,559 ▲2618.29 ▼5.06624.78 ▲17.1754.40 ▼3.51
Media Library /wp-admin/upload.php1,436 ▲484.24 ▲0.01100.20 ▼5.6744.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP296295342,100
Sass6482244
JavaScript3376122
CSS4228

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 code0.28
Average class complexity10.21
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes15.26%
Methods104
▷ Static methods65.77%
▷ Public methods10298.08%
▷ Protected methods00.00%
▷ Private methods21.92%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/insert_image.png28.00KB11.12KB▼ 60.30%
assets/images/image_inserted.png51.99KB19.66KB▼ 62.18%
assets/images/upload_popup.png31.64KB12.61KB▼ 60.13%