73% license-envato

Code Review | License For Envato

WordPress plugin License For Envato scored73%from 54 tests.

About plugin

  • Plugin page: license-envato
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2023
  • Latest release: Mar 31, 2023
  • Number of updates: 3
  • Update frequency: every 9.0 days
  • Top authors: ashrafulsarkar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /9,374 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.30ms] Passed 4 tests

This is a short check of server-side resources used by License For Envato
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.24 ▼4.79
Dashboard /wp-admin3.41 ▲0.0653.64 ▼12.22
Posts /wp-admin/edit.php3.52 ▲0.1651.72 ▲5.68
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.79 ▼5.98
Media Library /wp-admin/upload.php3.33 ▲0.1039.45 ▲1.79
All Users /wp-admin/admin.php?page=licenseenvato3.3533.97
Settings /wp-admin/admin.php?page=licenseenvato-settings3.4234.76
Documentation /wp-admin/admin.php?page=licenseenvato-documentation3.3034.49

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: 1 new table, 8 new options
New tables
wp_license_envato_userlist
New WordPress options
theysaidso_admin_options
widget_recent-comments
license_envato_installed
db_upgraded
can_compress_scripts
widget_recent-posts
LICENSE_ENVATO_VERSION
widget_theysaidso_widget

Browser metrics Passed 4 tests

License For Envato: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.23 ▼0.062.06 ▲0.3141.37 ▼3.08
Dashboard /wp-admin2,231 ▲545.56 ▼0.0990.70 ▼6.5638.74 ▼1.08
Posts /wp-admin/edit.php2,133 ▲332.02 ▲0.0339.84 ▲2.3736.00 ▼1.13
Add New Post /wp-admin/post-new.php1,553 ▲2523.12 ▲0.08674.34 ▼17.1753.81 ▲1.06
Media Library /wp-admin/upload.php1,436 ▲364.14 ▼0.07102.69 ▼11.0644.68 ▼2.74
All Users /wp-admin/admin.php?page=licenseenvato9552.0324.2426.52
Settings /wp-admin/admin.php?page=licenseenvato-settings8432.0023.8536.96
Documentation /wp-admin/admin.php?page=licenseenvato-documentation2,2982.1122.5432.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_license_envato_userlist
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • LICENSE_ENVATO_VERSION
    • can_compress_scripts
    • license_envato_installed
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'licenseCodeVerifyForm' not found in wp-content/plugins/license-envato/includes/Admin/doc/function-call.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/license-envato/includes/Admin/views/envato.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/license-envato/includes/Admin/views/general.php:1
    • > PHP Fatal error
      Trait 'LicenseEnvato\\Error\\Form_Error' not found in wp-content/plugins/license-envato/includes/Admin/Settings.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/license-envato/includes/Admin/Allusers.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/license-envato/includes/Admin/views/settingsView.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/license-envato/includes/Admin/views/documentationView.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/license-envato/includes/API/EnvatoLicenseRestApi.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/license-envato/includes/Admin/views/userview.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: software license, license key, plugin license, license envato, license manager...

license-envato/license-envato.php 77% from 13 tests

This is the main PHP file of "License For Envato" 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
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("5.6" instead of "6.0")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,685 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP313568111,581
CSS10080
JSON20024

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.36
Average class complexity12.71
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces6
Interfaces0
Traits1
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods99
▷ Static methods1919.19%
▷ Public methods8989.90%
▷ Protected methods00.00%
▷ Private methods1010.10%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin