Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.74ms] Passed 4 tests
Server-side resources used by Adf.ly page monetarization
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.02 | 52.32 ▲5.48 |
Dashboard /wp-admin | 3.46 ▲0.02 | 34.37 ▲1.23 |
Posts /wp-admin/edit.php | 3.69 ▲0.02 | 38.70 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.08 | 93.35 ▼1,177.37 |
Media Library /wp-admin/upload.php | 3.34 ▲0.01 | 25.62 ▼0.30 |
Adfly /wp-admin/options-general.php?page=adflyi_settings_page | 3.29 | 21.47 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 2 new options
New WordPress options |
---|
adfly_id |
adfly_advert |
Browser metrics Passed 4 tests
An overview of browser requirements for Adf.ly page monetarization
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.19 ▲0.20 | 5.83 ▼0.08 | 2.49 ▼0.54 |
Dashboard /wp-admin | 2,893 ▲35 | 6.17 ▼0.02 | 115.60 ▼19.54 | 159.16 ▼2.03 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▼0.13 | 64.47 ▼0.43 | 141.98 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,693 ▲35 | 20.65 ▲0.23 | 420.66 ▼17.16 | 155.92 ▼2.24 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.47 ▼0.02 | 147.44 ▲1.28 | 186.82 ▲5.05 |
Adfly /wp-admin/options-general.php?page=adflyi_settings_page | 850 | 1.97 | 37.05 | 92.16 |
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
- The uninstall procedure has failed, leaving 2 options in the database
- adfly_id
- adfly_advert
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=adflyi_settings_page
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=adflyi_settings_page
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=adflyi_settings_page
- > Error in wp-admin/includes/template.php+1720
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/adfly-website-monetarization/adfly-page.php on line 57 and exactly 2 expected in wp-admin/includes/template.php:1720
Stack trace:
#0 wp-content/plugins/adfly-website-monetarization/adfly-page.php(57): do_settings_fields()
#1 wp-includes/class-wp-hook.php(307): adfly_menu_fn()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/adfly-website-monetarization/adfly-page.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== adfly-website-monetarization ===
) - Screenshots: Screenshot #1 (Visit adf.ly at http://adf.ly/?id=3757920 to register. You need a registration in order to monetarize your site.) image missing
adfly-website-monetarization/adfly-page.php 92% from 13 tests
Analyzing the main PHP file in "Adf.ly page monetarization" version 1.2
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("adfly-website-monetarization.php" instead of "adfly-page.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
There were no executable files found in this plugin59 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 11 | 59 |
PHP code Passed 2 tests
An overview 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.19 |
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 | 5 | |
▷ Named functions | 5 | 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
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 87.83KB | 38.43KB | ▼ 56.24% |