83% woo-license-keys-nf

Code Review | License Keys (Forms integration)

WordPress plugin License Keys (Forms integration) scored 83% from 54 tests.

About plugin

  • Plugin page: woo-license-keys-nf
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3-5.3
  • WordPress version: 6.3.1
  • First release: Dec 10, 2019
  • Latest release: Apr 3, 2020
  • Number of updates: 8
  • Update frequency: every 14.4 days
  • Top authors: 10quality (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 573 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.53MB] [CPU: ▼0.77ms] Passed 4 tests

Server-side resources used by License Keys (Forms integration)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5639.30 ▼2.73
Dashboard /wp-admin3.83 ▲0.5353.38 ▲4.30
Posts /wp-admin/edit.php3.94 ▲0.5949.55 ▲1.07
Add New Post /wp-admin/post-new.php6.41 ▲0.5291.55 ▼5.72
Media Library /wp-admin/upload.php3.75 ▲0.5241.48 ▲7.44

Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • Illegal file modification detected: 2 files (0.06KB) outside of "wp-content/plugins/woo-license-keys-nf/" and "wp-content/uploads/"
    • (new file) wp-content/wpmvc/cache/pcom/.htaccess
    • (new file) wp-content/wpmvc/log/.empty
Filesystem: 433 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for License Keys (Forms integration)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.18 ▼1.411.85 ▲0.1640.28 ▼0.94
Dashboard /wp-admin2,209 ▲245.85 ▲0.9794.93 ▼13.3141.05 ▼0.81
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0336.00 ▼0.5433.74 ▲0.17
Add New Post /wp-admin/post-new.php1,534 ▼023.22 ▼0.01676.04 ▼36.0163.05 ▲4.26
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0695.04 ▼7.6444.76 ▼1.87

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 280× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Predis\\Response\\ErrorInterface' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Response/Error.php:20
    • > PHP Fatal error
      Uncaught Predis\\Connection\\ConnectionException: Connection refused [tcp://127.0.0.1:6379] in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Connection/AbstractConnection.php:146
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/ListTrim.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/ListRemove.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\ServerEval' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/ServerEvalSHA.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/ListPushTailX.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Connection\\StreamConnection' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Connection/PhpiredisStreamConnection.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/ZSetAdd.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/StringIncrementByFloat.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Profile\\RedisProfile' not found in wp-content/plugins/woo-license-keys-nf/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Profile/RedisVersion260.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === License Keys (Forms integration) === )
The official readme.txt is a good inspiration

woo-license-keys-nf/plugin.php 85% from 13 tests

The entry point to "License Keys (Forms integration)" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-license-keys-nf.php" instead of "plugin.php")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "3")

Code Analysis 97% from 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 plugin16,615 lines of code in 398 files:
LanguageFilesBlank linesComment linesLines of code
PHP3683,45811,80714,513
Markdown1047201,189
JSON810706
PO File330399
XML50072
INI16624
HTML1016
JavaScript1105
CSS1071

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 121)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.68
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity121.00
Code structure
Namespaces40
Interfaces40
Traits13
Classes295
▷ Abstract classes227.46%
▷ Concrete classes27392.54%
▷ Final classes20.73%
Methods1,372
▷ Static methods765.54%
▷ Public methods1,13082.36%
▷ Protected methods18813.70%
▷ Private methods543.94%
Functions37
▷ Named functions1540.54%
▷ Anonymous functions2259.46%
Constants39
▷ Global constants410.26%
▷ Class constants3589.74%
▷ Public constants35100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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