84% arya-license-manager

Code Review | Arya License Manager

WordPress plugin Arya License Manager scored84%from 54 tests.

About plugin

  • Plugin page: arya-license-manager
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Aug 28, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: aryathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /645 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.93ms] Passed 4 tests

An overview of server-side resources used by Arya License Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.81 ▲0.95
Dashboard /wp-admin3.31 ▼0.0442.77 ▼16.51
Posts /wp-admin/edit.php3.36 ▲0.0047.14 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.74 ▼10.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.74 ▲2.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Arya License Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.12 ▼0.221.82 ▲0.0445.80 ▲3.86
Dashboard /wp-admin2,198 ▲185.62 ▲0.0185.54 ▼4.0440.44 ▲3.19
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0735.29 ▼4.6032.51 ▲0.72
Add New Post /wp-admin/post-new.php1,526 ▼223.59 ▲0.45618.87 ▼20.5967.16 ▼1.85
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.0198.77 ▼5.3145.44 ▲2.68

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

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

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)
Even though no errors were found, 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
Please fix the following items
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/Product.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/arya-license-manager/src/Admin/Emails/Suspended.php:13
    • > PHP Fatal error
      Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Admin/License.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/arya-license-manager/src/License/Order.php:13
    • > PHP Fatal error
      Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/Order.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'Arya\\LicenseManager\\License\\AbstractActivation' not found in wp-content/plugins/arya-license-manager/src/License/RemoteActivation.php:13
    • > PHP Fatal error
      Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/Cart.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Query' not found in wp-content/plugins/arya-license-manager/src/Storefront/Query.php:13
    • > PHP Fatal error
      Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/License.php on line 10
    • > PHP Fatal error
      Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Admin/Product.php on line 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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: You can take inspiration from this readme.txt

arya-license-manager/arya-license-manager.php 92% from 13 tests

The main file in "Arya License Manager" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,367 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP591,1752,0733,774
CSS67539342
JavaScript85232167
JSON20057
Markdown115027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.23
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces11
Interfaces0
Traits1
Classes42
▷ Abstract classes12.38%
▷ Concrete classes4197.62%
▷ Final classes00.00%
Methods256
▷ Static methods2610.16%
▷ Public methods21985.55%
▷ Protected methods20.78%
▷ Private methods3513.67%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin