Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-applink/class/class-itunes.php+47
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.79MB] [CPU: ▼49.87ms] Passed 4 tests
This is a short check of server-side resources used by WP Applink
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.27 | 6.01 ▼39.14 |
Dashboard /wp-admin | 2.22 ▼1.09 | 6.04 ▼40.81 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 7.37 ▼37.77 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 7.39 ▼81.77 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 7.21 ▼32.17 |
WP Applink /wp-admin/options-general.php?page=wpal-setting | 2.22 | 8.18 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpal-setting |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Applink
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.68 ▼0.88 | 1.76 ▲0.03 | 43.83 ▼2.21 |
Dashboard /wp-admin | 2,220 ▲29 | 4.91 ▼1.00 | 109.70 ▲0.37 | 39.81 ▼3.46 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.06 ▼0.08 | 40.37 ▼0.98 | 34.87 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,888 | 18.88 ▼4.20 | 907.23 ▲265.90 | 64.57 ▲14.90 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.25 ▲0.02 | 99.15 ▼7.02 | 41.35 ▼1.53 |
WP Applink /wp-admin/options-general.php?page=wpal-setting | 902 | 2.07 | 26.24 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-applink/class/class-itunes.php+47
Undefined index: country
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% 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/options-general.php?page=wpal-setting
- > Notice in wp-content/plugins/wp-applink/class/class-itunes.php+47
Undefined index: country
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-applink/views/view-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-applink/wp-applink.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wpal-setting
- > Javascript (severe) in unknown
/wp-content/plugins/wp-applink/assets/js/bundle.js?ver=0.4.1 0:2428 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
wp-applink/wp-applink.php Passed 13 tests
The main file in "WP Applink" v. 0.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
It is a WordPress plugin that generates iTunes PHG affiliate links such as iPhone, iPad, Mac apps and music, movies etc.
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
Good job! No executable or dangerous file extensions detected1,065 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 164 | 72 | 792 |
Stylus | 2 | 42 | 1 | 174 |
PO File | 1 | 43 | 60 | 96 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 1 | 1.35% |
▷ Public methods | 48 | 64.86% |
▷ Protected methods | 21 | 28.38% |
▷ Private methods | 5 | 6.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin