Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.03ms] Passed 4 tests
Analyzing server-side resources used by 2Performant Link2 - Automatic affiliate links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.85 ▼6.68 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.53 ▼2.53 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.10 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.35 ▼7.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.95 ▲5.86 |
2Performant Link2 /wp-admin/options-general.php?page=2performant-link2 | 3.23 | 30.30 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
2Performant Link2 - Automatic affiliate links: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.38 ▼1.26 | 1.56 ▼0.82 | 41.48 ▼13.03 |
Dashboard /wp-admin | 2,230 ▲45 | 4.88 ▼0.98 | 107.08 ▼11.48 | 39.77 ▼4.01 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.06 ▲0.01 | 37.51 ▼0.29 | 34.11 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,532 ▼6 | 17.81 ▼5.39 | 657.91 ▼35.32 | 56.23 ▲3.79 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.25 ▲0.06 | 96.40 ▼3.98 | 44.58 ▲0.95 |
2Performant Link2 /wp-admin/options-general.php?page=2performant-link2 | 881 | 2.04 | 23.47 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/2performant-link2/views/settings.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/2performant-link2/views/dashboard-notices.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/2performant-link2/link2.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: link2, 2performant, tool, affiliate, affiliate marketing...
2performant-link2/link2.php 92% from 13 tests
Analyzing the main PHP file in "2Performant Link2 - Automatic affiliate links" version 1.0.1
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("2performant-link2.php" instead of "link2.php")
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 detected154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 8 | 154 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin