Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.10ms] Passed 4 tests
A check of server-side resources used by Outbound Links Monetization
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.60 ▲2.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.95 ▼3.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.58 ▲1.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.25 ▼4.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.82 ▲2.25 |
Links Monetization /wp-admin/options-general.php?page=shortenurl_settings | 3.22 | 34.13 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_shorten_urls |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Outbound Links Monetization
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲58 | 14.34 ▼0.01 | 1.81 ▲0.30 | 47.09 ▲5.91 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.11 | 91.00 ▼7.08 | 41.13 ▼4.59 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.05 | 39.76 ▲4.98 | 36.04 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 22.98 ▲4.83 | 659.96 ▲42.53 | 52.86 ▼12.26 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.19 ▼0.03 | 94.15 ▼2.74 | 43.14 ▲1.91 |
Links Monetization /wp-admin/options-general.php?page=shortenurl_settings | 827 | 1.99 | 29.67 | 43.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/outbound-links-monetization/OutboundLinksMonetization.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (screenshot.png), #2 (banner-772—250.png), #3 (icon-128x128.png), #4 (banner-1544—500.png)
- Tags: There are too many tags (15 tag instead of maximum 10)
- Donate link: Please fix this invalid url: "NA"
- Screenshots: Add a description for screenshot #0 in outbound-links-monetization/assets to your readme.txt
outbound-links-monetization/OutboundLinksMonetization.php 92% from 13 tests
"Outbound Links Monetization" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("outbound-links-monetization.php" instead of "OutboundLinksMonetization.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
No dangerous file extensions were detected120 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 16 | 120 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 7.82KB | 4.45KB | ▼ 43.09% |
Screenshot-1.png | 7.82KB | 4.45KB | ▼ 43.09% |