Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/myloyal/core/action-runner.php+49
Invalid argument supplied for foreach()
Server metrics [RAM: ▼0.62MB] [CPU: ▼183.78ms] Passed 4 tests
An overview of server-side resources used by myLoyal - reward, point, gamification and loyalty plugin with easy but smart yet rules
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.29 | 12.24 ▼9.60 |
Dashboard /wp-admin | 3.03 ▼0.02 | 13.08 ▼32.52 |
Posts /wp-admin/edit.php | 3.03 ▼0.07 | 13.01 ▼31.86 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.40 | 11.60 ▼643.17 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 12.36 ▼27.58 |
Point Rule /wp-admin/admin.php?page=point_rules | 3.03 | 20.28 |
Achievements /wp-admin/edit-tags.php?taxonomy=achievements&post_type=loyal_badge | 3.03 | 13.53 |
Badge /wp-admin/edit.php?post_type=loyal_badge | 3.03 | 12.89 |
myLoyal /wp-admin/admin.php?page=myloyal | 3.03 | 12.56 |
Server storage [IO: ▲2.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 290 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_myloyal_badge_user |
wp_myloyal_log |
New WordPress options |
---|
myloyal_pages |
Browser metrics Passed 4 tests
An overview of browser requirements for myLoyal - reward, point, gamification and loyalty plugin with easy but smart yet rules
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.93 ▲0.01 | 12.92 ▲2.47 | 57.59 ▲10.23 |
Dashboard /wp-admin | 3,014 ▲83 | 6.04 ▲0.03 | 131.00 ▼8.53 | 98.83 ▼7.26 |
Posts /wp-admin/edit.php | 2,783 ▲44 | 2.72 ▲0.02 | 64.95 ▼0.23 | 97.06 ▲8.47 |
Add New Post /wp-admin/post-new.php | 1,632 ▲134 | 18.60 ▼0.19 | 362.50 ▼15.17 | 107.93 ▼8.60 |
Media Library /wp-admin/upload.php | 1,851 ▲44 | 5.04 ▼0.01 | 155.52 ▲11.02 | 131.88 ▲6.26 |
Point Rule /wp-admin/admin.php?page=point_rules | 1,187 | 3.22 | 80.86 | 67.35 |
Achievements /wp-admin/edit-tags.php?taxonomy=achievements&post_type=loyal_badge | 1,782 | 2.38 | 70.34 | 93.26 |
Badge /wp-admin/edit.php?post_type=loyal_badge | 1,481 | 2.76 | 59.02 | 67.34 |
myLoyal /wp-admin/admin.php?page=myloyal | 1,035 | 2.09 | 65.13 | 61.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/myloyal/core/action-runner.php+49
Invalid argument supplied for foreach()
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_myloyal_log
- wp_myloyal_badge_user
- Zombie WordPress options were found after uninstall: 1 option
- myloyal_pages
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=myloyal
- > Warning in wp-content/plugins/myloyal/core/action-runner.php+49
Invalid argument supplied for foreach()
SRP 0% 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
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/tailwind.blade.php
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/simple-tailwind.blade.php
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/simple-default.blade.php
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/default.blade.php
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/bootstrap-4.blade.php
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/simple-bootstrap-4.blade.php
- > /wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Pagination/resources/views/semantic-ui.blade.php
- 109× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'As247\\WpEloquent\\Database\\Connectors\\Connector' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Connectors/MySqlConnector.php:7
- > PHP Fatal error
Uncaught Error: Interface 'As247\\WpEloquent\\Doctrine\\Inflector\\WordInflector' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Doctrine/Inflector/Rules/Transformations.php:9
- > PHP Fatal error
Uncaught Error: Interface 'As247\\WpEloquent\\Support\\Enumerable' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Support/Collection.php:11
- > PHP Fatal error
Uncaught Error: Class 'As247\\WpEloquent\\Database\\Eloquent\\Relations\\Relation' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Eloquent/Relations/HasOneOrMany.php:9
- > PHP Fatal error
Uncaught Error: Interface 'As247\\WpEloquent\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Eloquent/Model.php:22
- > PHP Fatal error
Uncaught Error: Class 'As247\\WpEloquent\\Database\\Grammar' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Schema/Grammars/Grammar.php:14
- > PHP Fatal error
Uncaught Error: Class 'As247\\WpEloquent\\Database\\Connectors\\Connector' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Connectors/SQLiteConnector.php:7
- > PHP Fatal error
Uncaught Error: Interface 'As247\\WpEloquent\\Contracts\\Pagination\\Paginator' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Contracts/Pagination/LengthAwarePaginator.php:5
- > PHP Fatal error
Uncaught Error: Class 'As247\\WpEloquent\\Database\\Connectors\\Connector' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Connectors/SqlServerConnector.php:8
- > PHP Fatal error
Trait 'As247\\WpEloquent\\Support\\Traits\\ForwardsCalls' not found in wp-content/plugins/myloyal/vendor/as247/wp-eloquent/src/Database/Eloquent/Relations/Relation.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
myloyal/myloyal.php Passed 13 tests
This is the main PHP file of "myLoyal - reward, point, gamification and loyalty plugin with easy but smart yet rules" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Manage points, rewards, gamifications, ranks, badges on user activities on your site
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected51,049 lines of code in 284 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 6,912 | 22,860 | 25,316 |
JSON | 8 | 0 | 0 | 12,621 |
JavaScript | 3 | 1,431 | 1,887 | 12,288 |
CSS | 1 | 116 | 0 | 362 |
Blade | 7 | 18 | 26 | 257 |
Sass | 1 | 3 | 0 | 113 |
Markdown | 3 | 31 | 0 | 92 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 35 | |
Traits | 24 | |
Classes | 187 | |
▷ Abstract classes | 14 | 7.49% |
▷ Concrete classes | 173 | 92.51% |
▷ Final classes | 8 | 4.62% |
Methods | 3,107 | |
▷ Static methods | 299 | 9.62% |
▷ Public methods | 2,350 | 75.64% |
▷ Protected methods | 750 | 24.14% |
▷ Private methods | 7 | 0.23% |
Functions | 313 | |
▷ Named functions | 15 | 4.79% |
▷ Anonymous functions | 298 | 95.21% |
Constants | 20 | |
▷ Global constants | 9 | 45.00% |
▷ Class constants | 11 | 55.00% |
▷ Public constants | 10 | 90.91% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected