94% adngin-your-adsense-your-traffic-maximized-revenue-for-free

Code Review | AdNgin-Adsense Revenue Optimization

WordPress plugin AdNgin-Adsense Revenue Optimization scored 94% from 54 tests.

About plugin

  • Plugin page: adngin-your-adsen...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 5.9.2
  • First release: Jul 1, 2015
  • Latest release: Mar 24, 2016
  • Number of updates: 24
  • Update frequency: every 11.4 days
  • Top authors: yayabobi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,246 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.00 ▲0.96
Dashboard /wp-admin3.41 ▲0.0133.39 ▼0.69
Posts /wp-admin/edit.php3.65 ▲0.0137.02 ▼2.50
Add New Post /wp-admin/post-new.php6.88 ▼0.0990.70 ▼1,183.96
Media Library /wp-admin/upload.php3.30 ▲0.0025.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3715.84 ▲0.215.51 ▼1.672.05 ▼0.02
Dashboard /wp-admin2,910 ▲496.13 ▼0.04115.47 ▼17.09181.03 ▲21.72
Posts /wp-admin/edit.php2,708 ▲143.12 ▼0.2560.74 ▼4.71139.93 ▲3.55
Add New Post /wp-admin/post-new.php1,675 ▲1418.10 ▲1.93388.99 ▼19.67170.34 ▲13.29
Media Library /wp-admin/upload.php1,708 ▲105.55 ▲0.03122.73 ▼14.12209.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


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)
You can look at the official readme.txt

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

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 code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
7 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png9.20KB5.49KB▼ 40.30%