84% w3dart

Code Review | W3Dart : Visual Feedback and Bug Reporting Tool With Video Screen Recording and Annotated Screenshots

WordPress plugin W3Dart : Visual Feedback and Bug Reporting Tool With Video Screen Recording and Annotated Screenshots scored84%from 54 tests.

About plugin

  • Plugin page: w3dart
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2021
  • Latest release: Dec 23, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: w3dart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.03ms] Passed 4 tests

An overview of server-side resources used by W3Dart : Visual Feedback and Bug Reporting Tool With Video Screen Recording and Annotated Screenshots
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.93 ▼0.05
Dashboard /wp-admin3.33 ▲0.0256.72 ▲10.51
Posts /wp-admin/edit.php3.38 ▲0.0249.50 ▼5.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.04 ▲1.09
Media Library /wp-admin/upload.php3.25 ▲0.0239.61 ▲4.28

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

W3Dart : Visual Feedback and Bug Reporting Tool With Video Screen Recording and Annotated Screenshots: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲6113.69 ▼0.681.62 ▼0.5243.95 ▲4.49
Dashboard /wp-admin2,226 ▲384.89 ▲0.0397.88 ▼10.8383.79 ▲41.44
Posts /wp-admin/edit.php2,118 ▲292.06 ▲0.0639.74 ▼0.2338.22 ▼1.14
Add New Post /wp-admin/post-new.php1,686 ▲17222.54 ▲4.94755.98 ▲67.0670.60 ▲14.55
Media Library /wp-admin/upload.php1,419 ▲344.17 ▼0.11116.44 ▲17.1144.33 ▲0.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/w3dart/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/w3dart/w3dart.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 28 tag instead of maximum 10
The official readme.txt is a good inspiration

w3dart/w3dart.php Passed 13 tests

This is the main PHP file of "W3Dart : Visual Feedback and Bug Reporting Tool With Video Screen Recording and Annotated Screenshots" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Visual Feddback tool for Wordpress Websits to collect bugs

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
There were no executable files found in this plugin317 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2169198
CSS1190105
JavaScript10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png16.39KB7.61KB▼ 53.54%
assets/icon.png1.94KB1.85KB▼ 4.83%