90% docuask

Code Review | DocuAsk 1.0.4

WordPress plugin DocuAsk 1.0.4 scored90%from 54 tests.

About plugin

  • Plugin page: docuask
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 5, 2023
  • Latest release: Oct 5, 2023
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: docuask (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /23 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.99ms] Passed 4 tests

A check of server-side resources used by DocuAsk 1.0.4
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.97 ▼5.51
Dashboard /wp-admin3.32 ▼0.0245.27 ▼17.62
Posts /wp-admin/edit.php3.37 ▲0.0246.81 ▼3.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.43 ▼17.39
Media Library /wp-admin/upload.php3.24 ▲0.0236.74 ▲5.20

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

DocuAsk 1.0.4: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.36 ▼1.022.25 ▲0.4737.41 ▼7.04
Dashboard /wp-admin2,239 ▲475.86 ▲0.99105.71 ▼8.7771.70 ▲30.42
Posts /wp-admin/edit.php2,125 ▲331.98 ▼0.0342.37 ▲1.3535.16 ▼1.43
Add New Post /wp-admin/post-new.php1,543 ▲2922.93 ▲5.26676.79 ▼12.2956.86 ▼4.36
Media Library /wp-admin/upload.php1,409 ▲214.13 ▼0.03100.87 ▼2.1347.52 ▲2.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: openai, ai, gpt, docuask

docuask/DocuAsk.1.0.4.php 92% from 13 tests

The main file in "DocuAsk 1.0.4" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("docuask.php" instead of "DocuAsk.1.0.4.php")

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
Good job! No executable or dangerous file extensions detected80 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG files were detected