Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼293.83ms] Passed 4 tests
Server-side resources used by Adfever Monétisation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.04 | 49.96 ▼0.60 |
Dashboard /wp-admin | 3.43 ▲0.03 | 36.22 ▲2.96 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 34.61 ▼2.76 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 103.49 ▼1,167.15 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.73 ▼4.79 |
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises | 3.26 | 21.94 |
Options générales /wp-admin/admin.php?page=adfever-monetisation | 3.26 | 22.76 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
AF_options |
Browser metrics Passed 4 tests
A check of browser resources used by Adfever Monétisation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,970 ▲216 | 16.12 ▲0.14 | 9.79 ▲3.43 | 2.71 ▲0.18 |
Dashboard /wp-admin | 2,949 ▲88 | 6.85 ▲0.69 | 117.95 ▼19.51 | 177.09 ▲16.08 |
Posts /wp-admin/edit.php | 2,747 ▲56 | 3.52 ▲0.28 | 67.07 ▲3.78 | 159.50 ▲18.71 |
Add New Post /wp-admin/post-new.php | 1,700 ▲39 | 16.22 ▼0.00 | 382.14 ▼30.28 | 210.63 ▲53.31 |
Media Library /wp-admin/upload.php | 1,750 ▲49 | 5.94 ▲0.42 | 123.76 ▼22.45 | 196.11 ▲7.91 |
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises | 3,360 | 3.67 | 98.48 | 137.34 |
Options générales /wp-admin/admin.php?page=adfever-monetisation | 1,452 | 2.94 | 57.24 | 118.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- AF_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+408
Undefined index: AF_title_font
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+442
Undefined index: AF_text_font
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+477
Undefined index: AF_link_font
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+511
Undefined index: AF_global_border_type
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+535
Undefined index: AF_global_border_size
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+563
Undefined index: AF_border_type
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+573
Undefined index: AF_border_size
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+625
Undefined index: AF_disclaimer_text
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adfever-liens-sponsorises
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+654
Undefined index: AF_disclaimer_font
- > GET request to /wp-admin/admin.php?page=adfever-monetisation
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+226
Undefined index: AF_AID
- > GET request to /wp-admin/admin.php?page=adfever-monetisation
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+252
Undefined index: AF_LTID
- > GET request to /wp-admin/admin.php?page=adfever-monetisation
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+273
Undefined index: AF_FID
- > GET request to /wp-admin/admin.php?page=adfever-monetisation
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+296
Undefined index: AF_SUID
- > GET request to /wp-admin/admin.php?page=adfever-monetisation
- > Notice in wp-content/plugins/adfever-monetisation/adfever-monetisation.php+316
Undefined index: AF_SIID
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== adfever-monetisation ===
)
adfever-monetisation/adfever-monetisation.php Passed 13 tests
The main PHP script in "Adfever Monétisation" version 1.0.2 is automatically included on every request by WordPress
57 characters long description:
Adds adFever's advertising functionnalities to wordpress.
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
Everything looks great! No dangerous files found in this plugin963 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 239 | 88 | 897 |
CSS | 1 | 7 | 0 | 35 |
JavaScript | 2 | 5 | 7 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.33KB | 0.48KB | ▼ 63.86% |