Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/skimlinks/widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; sl_disclosure_widget has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.48ms] Passed 4 tests
Analyzing server-side resources used by Skimlinks Affiliate Marketing Tool
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 56.09 ▲6.95 |
Dashboard /wp-admin | 3.33 ▲0.02 | 62.00 ▲6.98 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.73 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 114.28 ▼9.24 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.01 ▼7.83 |
Skimlinks /wp-admin/options-general.php?page=skimlinks-options | 3.30 | 85.06 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
sl_db_version |
widget_theysaidso_widget |
sl_footer_js_works_for |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Skimlinks Affiliate Marketing Tool
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲77 | 14.42 ▲0.77 | 1.85 ▼28.49 | 116.67 ▲10.64 |
Dashboard /wp-admin | 2,210 ▲6 | 5.79 ▲0.86 | 186.30 ▼36.47 | 116.58 ▲9.37 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.01 ▼0.02 | 68.50 ▼20.11 | 243.60 ▼33.34 |
Add New Post /wp-admin/post-new.php | 1,527 ▲99 | 18.70 ▼3.85 | 1,249.07 ▲356.81 | 302.01 ▲145.27 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.18 ▼0.02 | 174.57 ▼26.16 | 232.19 ▲79.10 |
Skimlinks /wp-admin/options-general.php?page=skimlinks-options | 948 | 2.24 | 57.30 | 120.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- db_upgraded
- sl_footer_js_works_for
- widget_theysaidso_widget
- sl_db_version
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=skimlinks-options
- > User deprecated in wp-includes/functions.php+5453
Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/skimlinks/plugin.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/skimlinks/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skimlinks/hooks.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/skimlinks/plugin.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/skimlinks/widget.php:3
- > PHP Warning
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 87% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (The Skimlinks settings page), #2 (Skimlinks publisher dashboard)
skimlinks/plugin.php 85% from 13 tests
The main PHP file in "Skimlinks Affiliate Marketing Tool" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 303 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("skimlinks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected604 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 149 | 193 | 588 |
JavaScript | 1 | 3 | 0 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
7 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Disclosure_cyan.png | 4.79KB | 2.58KB | ▼ 46.11% |
screenshot-1.png | 143.77KB | 38.41KB | ▼ 73.29% |
assets/skimlinks-logo.png | 19.78KB | 3.99KB | ▼ 79.82% |
assets/Disclosure_blue.png | 4.88KB | 2.58KB | ▼ 47.05% |
assets/Disclosure_white.png | 5.37KB | 2.56KB | ▼ 52.32% |