78% ethereumads

Code Review | EthereumAds - Earn Cryptocurrency with Banner Ads

WordPress plugin EthereumAds - Earn Cryptocurrency with Banner Ads scored78%from 54 tests.

About plugin

  • Plugin page: ethereumads
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0.0
  • WordPress version: 6.3.1
  • First release: Dec 10, 2020
  • Latest release: Nov 13, 2022
  • Number of updates: 10
  • Update frequency: every 70.3 days
  • Top authors: ethereumads (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,007 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by EthereumAds - Earn Cryptocurrency with Banner Ads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.53 ▼8.52
Dashboard /wp-admin3.32 ▲0.0243.23 ▼2.25
Posts /wp-admin/edit.php3.38 ▲0.0245.22 ▼3.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.36 ▼1.80
Media Library /wp-admin/upload.php3.25 ▲0.0239.13 ▲6.37
EthereumAds /wp-admin/options-general.php?page=ethereumads-settings-page3.1930.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_ethereumads_widget
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
ethereumads_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for EthereumAds - Earn Cryptocurrency with Banner Ads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.15 ▼1.175.02 ▲3.3139.90 ▼5.11
Dashboard /wp-admin2,219 ▲344.78 ▼1.08109.69 ▲3.3641.96 ▼6.13
Posts /wp-admin/edit.php2,101 ▲92.05 ▼0.0040.19 ▼0.1835.71 ▼1.55
Add New Post /wp-admin/post-new.php1,558 ▲4418.22 ▲0.64646.45 ▼1.2065.35 ▲12.15
Media Library /wp-admin/upload.php1,404 ▲224.17 ▼0.0599.73 ▲0.8241.50 ▼1.82
EthereumAds /wp-admin/options-general.php?page=ethereumads-settings-page8402.0524.2829.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_ethereumads_widget
    • widget_theysaidso_widget
    • ethereumads_options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ethereumads-settings-page
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ethereumads-settings-page
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ethereumads/ethereumads.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: banner, ethereum, advertising, banner advertising, bitcoin...

ethereumads/ethereumads.php 92% from 13 tests

Analyzing the main PHP file in "EthereumAds - Earn Cryptocurrency with Banner Ads" version 1.0.1
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 265 characters long)

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 plugin429 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1133108429

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.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 were not PNG files found in your plugin