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
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.32ms] Passed 4 tests
Server-side resources used by Adfever Monétisation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 26.34 ▼13.49 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.70 ▼2.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.70 ▲1.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 79.82 ▼5.71 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.70 ▲0.30 |
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises | 3.19 | 29.53 |
Options générales /wp-admin/admin.php?page=adfever-monetisation | 3.19 | 29.31 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
AF_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Adfever Monétisation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲202 | 13.97 ▼0.42 | 5.06 ▲3.08 | 41.19 ▼8.03 |
Dashboard /wp-admin | 2,250 ▲58 | 5.11 ▲0.20 | 99.66 ▼25.17 | 73.96 ▲32.29 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.29 ▲0.30 | 37.86 ▼0.62 | 35.10 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.29 ▲5.79 | 673.64 ▼4.54 | 34.87 ▼14.28 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.41 ▲0.19 | 97.30 ▼0.91 | 73.66 ▲29.45 |
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises | 2,397 | 2.47 | 69.57 | 33.39 |
Options générales /wp-admin/admin.php?page=adfever-monetisation | 1,098 | 2.06 | 29.81 | 30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- AF_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 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 your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== adfever-monetisation ===
)
adfever-monetisation/adfever-monetisation.php Passed 13 tests
The main file in "Adfever Monétisation" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Adds adFever's advertising functionnalities to wordpress.
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
Good job! No executable or dangerous file extensions detected963 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
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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% |