10% do-we-have-testing-kits

Code Review | Do We Have Test Kits

WordPress plugin Do We Have Test Kits scored10%from 54 tests.

About plugin

  • Plugin page: do-we-have-testin...
  • Plugin version: 2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Jan 20, 2022
  • Latest release: Jan 20, 2022
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: ManiacalV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /292 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.90MB] [CPU: ▼57.01ms] Passed 4 tests

A check of server-side resources used by Do We Have Test Kits
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.18 ▼31.70
Dashboard /wp-admin2.12 ▼1.236.65 ▼53.47
Posts /wp-admin/edit.php2.12 ▼1.247.88 ▼41.75
Add New Post /wp-admin/post-new.php2.12 ▼3.776.01 ▼101.10
Media Library /wp-admin/upload.php2.12 ▼1.116.21 ▼26.27

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Do We Have Test Kits
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.13 ▼1.191.73 ▼0.0543.24 ▲1.29
Dashboard /wp-admin2,287 ▲965.81 ▼0.0998.42 ▼2.6140.04 ▼4.36
Posts /wp-admin/edit.php2,108 ▲162.01 ▼0.0439.37 ▼3.2634.29 ▼4.42
Add New Post /wp-admin/post-new.php1,531 ▲322.94 ▲4.92659.20 ▲19.6950.95 ▼0.97
Media Library /wp-admin/upload.php1,401 ▲194.21 ▲0.0196.33 ▼3.7042.81 ▼0.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/do-we-have-testing-kits/do_we_have_testing_kits.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 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
3 plugin tags: test, dashboard, covid

do-we-have-testing-kits/do_we_have_testing_kits.php 92% from 13 tests

The primary PHP file in "Do We Have Test Kits" version 2.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("do-we-have-testing-kits.php" instead of "do_we_have_testing_kits.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin372 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16610253
CSS112374
JavaScript110045

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin