Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼296.55ms] Passed 4 tests
An overview of server-side resources used by AdNgin-Adsense Revenue Optimization
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.00 ▲0.96 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.39 ▼0.69 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.02 ▼2.50 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 90.70 ▼1,183.96 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.16 ▲1.10 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for AdNgin-Adsense Revenue Optimization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲37 | 15.84 ▲0.21 | 5.51 ▼1.67 | 2.05 ▼0.02 |
Dashboard /wp-admin | 2,910 ▲49 | 6.13 ▼0.04 | 115.47 ▼17.09 | 181.03 ▲21.72 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 3.12 ▼0.25 | 60.74 ▼4.71 | 139.93 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,675 ▲14 | 18.10 ▲1.93 | 388.99 ▼19.67 | 170.34 ▲13.29 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.55 ▲0.03 | 122.73 ▼14.12 | 209.59 ▲26.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.admin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.plugin.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.admin.page.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.php:9
- > 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 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.php 92% from 13 tests
The principal PHP file in "AdNgin-Adsense Revenue Optimization" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adngin-your-adsense-your-traffic-maximized-revenue-for-free.php" instead of "adngin.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
No dangerous file extensions were detected421 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 42 | 16 | 421 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
7 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 9.20KB | 5.49KB | ▼ 40.30% |
img/video_img.png | 48.80KB | 50.85KB | 0.00% |
img/icon.png | 0.49KB | 0.50KB | 0.00% |
img/adngin_logo.png | 1.10KB | 1.12KB | 0.00% |
img/traffic_icon.png | 0.35KB | 0.35KB | 0.00% |