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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.24 ▼4.79 |
Dashboard /wp-admin | 3.41 ▲0.06 | 53.64 ▼12.22 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.72 ▲5.68 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.79 ▼5.98 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.45 ▲1.79 |
All Users /wp-admin/admin.php?page=licenseenvato | 3.35 | 33.97 |
Settings /wp-admin/admin.php?page=licenseenvato-settings | 3.42 | 34.76 |
Documentation /wp-admin/admin.php?page=licenseenvato-documentation | 3.30 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.23 ▼0.06 | 2.06 ▲0.31 | 41.37 ▼3.08 |
Dashboard /wp-admin | 2,231 ▲54 | 5.56 ▼0.09 | 90.70 ▼6.56 | 38.74 ▼1.08 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.02 ▲0.03 | 39.84 ▲2.37 | 36.00 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.12 ▲0.08 | 674.34 ▼17.17 | 53.81 ▲1.06 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.14 ▼0.07 | 102.69 ▼11.06 | 44.68 ▼2.74 |
All Users /wp-admin/admin.php?page=licenseenvato | 955 | 2.03 | 24.24 | 26.52 |
Settings /wp-admin/admin.php?page=licenseenvato-settings | 843 | 2.00 | 23.85 | 36.96 |
Documentation /wp-admin/admin.php?page=licenseenvato-documentation | 2,298 | 2.11 | 22.54 | 32.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 356 | 811 | 1,581 |
CSS | 1 | 0 | 0 | 80 |
JSON | 2 | 0 | 0 | 24 |
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 code | 0.36 |
Average class complexity | 12.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 99 | |
▷ Static methods | 19 | 19.19% |
▷ Public methods | 89 | 89.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 10.10% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.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