84% adfever-monetisation

Code Review | Adfever Monétisation

WordPress plugin Adfever Monétisation scored 84% from 54 tests.

About plugin

  • Plugin page: adfever-monetisation
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9
  • WordPress version: 5.9.2
  • First release: Oct 24, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 11
  • Update frequency: every 16.5 days
  • Top authors: adfever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,666 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0449.96 ▼0.60
Dashboard /wp-admin3.43 ▲0.0336.22 ▲2.96
Posts /wp-admin/edit.php3.66 ▲0.0234.61 ▼2.76
Add New Post /wp-admin/post-new.php6.90 ▼0.07103.49 ▼1,167.15
Media Library /wp-admin/upload.php3.31 ▲0.0124.73 ▼4.79
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises3.2621.94
Options générales /wp-admin/admin.php?page=adfever-monetisation3.2622.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,970 ▲21616.12 ▲0.149.79 ▲3.432.71 ▲0.18
Dashboard /wp-admin2,949 ▲886.85 ▲0.69117.95 ▼19.51177.09 ▲16.08
Posts /wp-admin/edit.php2,747 ▲563.52 ▲0.2867.07 ▲3.78159.50 ▲18.71
Add New Post /wp-admin/post-new.php1,700 ▲3916.22 ▼0.00382.14 ▼30.28210.63 ▲53.31
Media Library /wp-admin/upload.php1,750 ▲495.94 ▲0.42123.76 ▼22.45196.11 ▲7.91
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises3,3603.6798.48137.34
Options générales /wp-admin/admin.php?page=adfever-monetisation1,4522.9457.24118.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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP223988897
CSS17035
JavaScript25731

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 code0.54
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/icon.png1.33KB0.48KB▼ 63.86%