Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼141.04ms] Passed 4 tests
A check of server-side resources used by adgoal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 41.04 ▲20.82 |
Dashboard /wp-admin | 3.07 ▲0.02 | 50.84 ▲0.33 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 48.15 ▲0.08 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 99.36 ▼561.08 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 41.36 ▼3.49 |
adgoal /wp-admin/options-general.php?page=adgoal-affiliate-marketing-monetization/adgoal.php | 2.98 | 32.78 |
Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
hash |
Browser metrics Passed 4 tests
Checking browser requirements for adgoal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲126 | 15.81 ▲0.26 | 11.85 ▼1.89 | 51.58 ▼4.84 |
Dashboard /wp-admin | 2,969 ▲38 | 6.16 ▼0.09 | 174.45 ▲8.82 | 114.14 ▼9.08 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 79.55 ▼7.52 | 97.80 ▲5.85 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.34 ▼0.38 | 413.95 ▼6.49 | 120.01 ▲2.37 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.02 | 194.82 ▲25.21 | 129.32 ▼21.90 |
adgoal /wp-admin/options-general.php?page=adgoal-affiliate-marketing-monetization/adgoal.php | 1,066 | 2.09 | 60.38 | 72.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- hash
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/adgoal-affiliate-marketing-monetization/adgoal.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== adgoal-affiliate-marketing-monetization ===
) - Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
adgoal-affiliate-marketing-monetization/adgoal.php 92% from 13 tests
The main PHP script in "adgoal" version 1.0.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adgoal-affiliate-marketing-monetization.php" instead of "adgoal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin94 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 12 | 94 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-32x32.png | 1.34KB | 1.45KB | 0.00% |