Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.83MB] [CPU: ▼34.29ms] Passed 4 tests
An overview of server-side resources used by Allkeyshop Affiliate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.39 ▼10.08 |
Dashboard /wp-admin | 3.12 ▼0.19 | 25.23 ▼21.67 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 26.44 ▼24.19 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 25.96 ▼81.20 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 25.61 ▼9.66 |
Link Account /wp-admin/admin.php?page=allkeyshop-link-account | 3.12 | 25.48 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Allkeyshop Affiliate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.37 ▼1.23 | 1.93 ▲0.08 | 40.49 ▼7.96 |
Dashboard /wp-admin | 2,236 ▲48 | 4.89 ▼1.01 | 111.98 ▲4.07 | 42.52 ▼1.59 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.03 ▲0.01 | 40.58 ▼1.51 | 34.46 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 18.45 ▼4.88 | 602.16 ▼26.58 | 33.81 ▼34.78 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.18 ▼0.01 | 95.56 ▼10.81 | 41.14 ▼3.15 |
Link Account /wp-admin/admin.php?page=allkeyshop-link-account | 839 | 2.06 | 23.99 | 22.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=allkeyshop-link-account
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/allkeyshop-affiliate/public/assets/views/include/header.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/allkeyshop-affiliate/public/assets/views/widgetMetaBox.php:3
- > PHP Notice
Undefined variable: success in wp-content/plugins/allkeyshop-affiliate/public/assets/views/apiKey.php on line 4
- > PHP Notice
Undefined variable: url in wp-content/plugins/allkeyshop-affiliate/public/assets/views/createGamePage.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/allkeyshop-affiliate/public/assets/views/index.php:2
- > PHP Notice
Undefined variable: success in wp-content/plugins/allkeyshop-affiliate/public/assets/views/apiKey.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/allkeyshop-affiliate/public/assets/views/apiKey.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/allkeyshop-affiliate/public/assets/views/gamePageContent.php:2
- > PHP Notice
Undefined variable: affiliateUrl in wp-content/plugins/allkeyshop-affiliate/public/assets/views/apiKey.php on line 27
- > PHP Notice
Undefined variable: success in wp-content/plugins/allkeyshop-affiliate/public/assets/views/apiKey.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function AllkeyshopAffiliate\\plugin_dir_path() in wp-content/plugins/allkeyshop-affiliate/main.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=allkeyshop-link-account
- > Javascript (severe) in unknown
/wp-content/plugins/allkeyshop-affiliate/public/assets/js/apiKey.js 67:31 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: widget, price, allkeyshop, game, comparison
allkeyshop-affiliate/main.php 85% from 13 tests
Analyzing the main PHP file in "Allkeyshop Affiliate" version 1.0.7
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("allkeyshop-affiliate.php" instead of "main.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin42,515 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 328 | 275 | 27,431 |
JSON | 5 | 0 | 0 | 11,803 |
TypeScript | 25 | 469 | 1,999 | 1,948 |
PHP | 13 | 83 | 147 | 748 |
CSS | 6 | 39 | 0 | 428 |
PO File | 1 | 36 | 38 | 123 |
Markdown | 2 | 13 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 40 | 100.00% |
▷ Public methods | 27 | 67.50% |
▷ Protected methods | 13 | 32.50% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin