Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.95ms] Passed 4 tests
This is a short check of server-side resources used by Purchase Button For Affiliate Link
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.48 ▲3.33 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.24 ▼1.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.27 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.48 ▼10.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.55 ▼4.28 |
Purchase Button /wp-admin/options-general.php?page=purchase-button-options | 3.28 | 33.88 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Purchase Button For Affiliate Link: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.80 ▼0.82 | 1.72 ▲0.15 | 47.68 ▲0.93 |
Dashboard /wp-admin | 2,229 ▲38 | 5.09 ▼0.81 | 104.45 ▼1.56 | 40.70 ▲0.34 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.31 ▲0.32 | 39.21 ▼1.04 | 32.01 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.53 ▼4.63 | 625.51 ▲1.74 | 34.61 ▼23.48 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.47 ▲0.26 | 96.84 ▼0.35 | 39.47 ▼3.07 |
Purchase Button /wp-admin/options-general.php?page=purchase-button-options | 1,415 | 2.62 | 64.83 | 27.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/purchase-button/inc/purchase-btn-options-page.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/purchase-button/purchase-button.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/purchase-button/inc/data.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: affiliate button, buy now, purchase button, buy now button, demo link...
purchase-button/purchase-button.php Passed 13 tests
The main PHP file in "Purchase Button For Affiliate Link" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
101 characters long description:
This plugin for Theme or Plugin demo Purchase Affiliate Link. you can easily add your Affiliate link.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin232 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 10 | 31 | 206 |
CSS | 1 | 3 | 0 | 20 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin