Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.94MB] [CPU: ▼37.14ms] Passed 4 tests
This is a short check of server-side resources used by Link Cloaker for Affiliates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.45 ▼8.09 |
Dashboard /wp-admin | 3.01 ▼0.30 | 25.79 ▼32.32 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 25.13 ▼27.40 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 22.67 ▼80.76 |
Media Library /wp-admin/upload.php | 3.01 ▼0.23 | 31.05 ▼6.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_affiliate_link_cloaker |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
alc_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Link Cloaker for Affiliates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.40 ▲0.16 | 1.73 ▼0.36 | 51.36 ▲7.54 |
Dashboard /wp-admin | 2,207 ▲27 | 5.58 ▼0.01 | 85.87 ▼7.83 | 86.55 ▲50.03 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▼0.01 | 35.84 ▼2.49 | 36.27 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.11 ▼0.03 | 721.86 ▲81.74 | 52.96 ▼15.32 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.19 ▼0.04 | 114.27 ▼1.75 | 84.82 ▲37.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_affiliate_link_cloaker
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- alc_db_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/link-cloaker-for-affiliates/linkcloaker_import_admin.php on line 79
- > PHP Notice
Undefined index: add_link in wp-content/plugins/link-cloaker-for-affiliates/linkcloaker_import_admin.php on line 46
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/link-cloaker-for-affiliates/linkcloaker_import_admin.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/link-cloaker-for-affiliates/link-cloaker-for-affiliates.1.0.php:74
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
9 plugin tags: short, shortener, link, links, cloaker...
link-cloaker-for-affiliates/link-cloaker-for-affiliates.1.0.php 92% from 13 tests
Analyzing the main PHP file in "Link Cloaker for Affiliates" version 1.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("link-cloaker-for-affiliates.php" instead of "link-cloaker-for-affiliates.1.0.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
Success! There were no dangerous files found in this plugin184 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 26 | 184 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 6 | |
▷ Named functions | 6 | 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
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 47.40KB | 0.51KB | ▼ 98.92% |