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

Code Review | AdNgin-Adsense Revenue Optimization

WordPress plugin AdNgin-Adsense Revenue Optimization scored84%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: 6.3.1
  • 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,557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.23ms] Passed 4 tests

Server-side resources used by AdNgin-Adsense Revenue Optimization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.14 ▼2.32
Dashboard /wp-admin3.33 ▲0.0247.77 ▼0.65
Posts /wp-admin/edit.php3.38 ▲0.0248.76 ▼0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.43 ▼21.33
Media Library /wp-admin/upload.php3.25 ▲0.0235.47 ▼0.09

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by AdNgin-Adsense Revenue Optimization
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.83 ▲0.471.79 ▼0.0243.46 ▲4.71
Dashboard /wp-admin2,221 ▲305.84 ▲0.9598.89 ▼7.1573.81 ▲31.52
Posts /wp-admin/edit.php2,104 ▲152.00 ▼0.0633.88 ▼9.0633.89 ▼4.38
Add New Post /wp-admin/post-new.php1,536 ▼623.19 ▲4.74756.93 ▲140.4063.41 ▲9.57
Media Library /wp-admin/upload.php1,400 ▲154.19 ▼0.0892.65 ▼6.8976.12 ▲33.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > 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 plugin_basename() in wp-content/plugins/adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.php:9
    • > 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 plugins_url() in wp-content/plugins/adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.admin.page.php:104

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

adngin-your-adsense-your-traffic-maximized-revenue-for-free/adngin.php 92% from 13 tests

The main PHP file in "AdNgin-Adsense Revenue Optimization" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin421 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP64216421

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/video_img.png48.80KB50.85KB0.00%
img/key.png0.48KB0.49KB0.00%
img/drag_n_drop.png10.04KB10.94KB0.00%
img/traffic_icon.png0.35KB0.35KB0.00%
img/icon.png0.49KB0.50KB0.00%