84% adfever-monetisation

Code Review | Adfever Monétisation

WordPress plugin Adfever Monétisation scored84%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: 6.3.1
  • 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,897 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
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
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.34 ▼13.49
Dashboard /wp-admin3.32 ▲0.0244.70 ▼2.37
Posts /wp-admin/edit.php3.37 ▲0.0245.70 ▲1.55
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.82 ▼5.71
Media Library /wp-admin/upload.php3.25 ▲0.0233.70 ▲0.30
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises3.1929.53
Options générales /wp-admin/admin.php?page=adfever-monetisation3.1929.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲20213.97 ▼0.425.06 ▲3.0841.19 ▼8.03
Dashboard /wp-admin2,250 ▲585.11 ▲0.2099.66 ▼25.1773.96 ▲32.29
Posts /wp-admin/edit.php2,132 ▲432.29 ▲0.3037.86 ▼0.6235.10 ▼0.26
Add New Post /wp-admin/post-new.php1,547 ▲3323.29 ▲5.79673.64 ▼4.5434.87 ▼14.28
Media Library /wp-admin/upload.php1,420 ▲294.41 ▲0.1997.30 ▼0.9173.66 ▲29.45
Liens sponsorisés /wp-admin/admin.php?page=adfever-liens-sponsorises2,3972.4769.5733.39
Options générales /wp-admin/admin.php?page=adfever-monetisation1,0982.0629.8130.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 === )
You can look at the official readme.txt

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

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 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

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
FileSize - originalSize - compressedSavings
img/icon.png1.33KB0.48KB▼ 63.86%