10% wp-ad-monetizer-lite

Code Review | WP Ad-Monetizer Lite

WordPress plugin WP Ad-Monetizer Lite scored10%from 54 tests.

About plugin

  • Plugin page: wp-ad-monetizer-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: mindlogixtechs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,195 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-ad-monetizer-lite/wp_admonetizer_lite.php+318
    Undefined variable: spec_ads_countries_list

Server metrics [RAM: ▼1.74MB] [CPU: ▼48.71ms] Passed 4 tests

Analyzing server-side resources used by WP Ad-Monetizer Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.25 ▼1.2110.07 ▼30.28
Dashboard /wp-admin2.27 ▼1.0311.30 ▼40.23
Posts /wp-admin/edit.php2.27 ▼1.0911.65 ▼36.90
Add New Post /wp-admin/post-new.php2.27 ▼3.6211.20 ▼87.42
Media Library /wp-admin/upload.php2.27 ▼0.9611.82 ▼19.76
WP Ad-Monetizer /wp-admin/edit.php?post_type=mlx_ads2.2811.44
Add New /wp-admin/post-new.php?post_type=mlx_ad_blocks2.2712.12
Add New /wp-admin/post-new.php?post_type=mlx_ads2.2710.60
Ad Blocks /wp-admin/edit.php?post_type=mlx_ad_blocks2.2811.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

WP Ad-Monetizer Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19713.74 ▼0.636.12 ▲4.1640.43 ▼7.91
Dashboard /wp-admin2,264 ▲795.17 ▲0.30110.30 ▼5.2439.48 ▼8.49
Posts /wp-admin/edit.php2,164 ▲752.41 ▲0.4044.70 ▲7.8234.17 ▼1.15
Add New Post /wp-admin/post-new.php1,566 ▲3323.29 ▲0.15617.70 ▼19.8949.93 ▼4.62
Media Library /wp-admin/upload.php1,456 ▲744.46 ▲0.27100.93 ▼3.8642.93 ▼4.61
WP Ad-Monetizer /wp-admin/edit.php?post_type=mlx_ads1,1462.3235.8930.12
Add New /wp-admin/post-new.php?post_type=mlx_ad_blocks2,1153.1064.6344.27
Add New /wp-admin/post-new.php?post_type=mlx_ads1,7172.8254.3935.30
Ad Blocks /wp-admin/edit.php?post_type=mlx_ad_blocks1,1412.5034.4528.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wp-ad-monetizer-lite/wp_admonetizer_lite.php+318
    Undefined variable: spec_ads_countries_list
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mlx_ad_blocks
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-ad-monetizer-lite/wp_admonetizer_lite.php+318
    Undefined variable: spec_ads_countries_list

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ad-monetizer-lite/meta-template.php:553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ad-monetizer-lite/meta-template.php:553

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #0, #0, #0, #0, #0, #0, #0 in wp-ad-monetizer-lite/assets to your readme.txt
  • Screenshots: Screenshot #1 (bla) image not found
The official readme.txt might help

wp-ad-monetizer-lite/wp_admonetizer_lite.php 85% from 13 tests

The entry point to "WP Ad-Monetizer Lite" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 326 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-ad-monetizer-lite.php" instead of "wp_admonetizer_lite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,922 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2282401,520
PHP2431721,065
CSS72228337

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions41
▷ Named functions41100.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
There are no PNG files in this plugin