68% easy-adsense-injection

Code Review | Easy Adsense Injection Plugin

WordPress plugin Easy Adsense Injection Plugin scored68%from 54 tests.

About plugin

  • Plugin page: easy-adsense-inje...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2013
  • Latest release: May 26, 2016
  • Number of updates: 8
  • Update frequency: every 148.0 days
  • Top authors: deepanker70 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /7,155 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼42.67ms] Passed 4 tests

This is a short check of server-side resources used by Easy Adsense Injection Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0548.03 ▲9.55
Dashboard /wp-admin3.03 ▼0.3123.10 ▼42.04
Posts /wp-admin/edit.php3.03 ▼0.3223.18 ▼30.93
Add New Post /wp-admin/post-new.php3.03 ▼2.8522.88 ▼86.47
Media Library /wp-admin/upload.php3.03 ▼0.2021.39 ▼11.25
Easy Adsense injection /wp-admin/options-general.php?page=easy-adsense-injection/easy-adsense-injection.php3.0324.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Easy Adsense Injection Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▼0.191.68 ▲0.0144.30 ▼0.28
Dashboard /wp-admin2,202 ▲255.64 ▲0.0687.89 ▲2.3739.50 ▼1.66
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0038.46 ▼5.0536.54 ▼0.58
Add New Post /wp-admin/post-new.php1,531 ▲523.35 ▼0.30610.30 ▲1.0854.43 ▼0.04
Media Library /wp-admin/upload.php1,401 ▲44.21 ▲0.10108.73 ▲5.4246.05 ▼1.83
Easy Adsense injection /wp-admin/options-general.php?page=easy-adsense-injection/easy-adsense-injection.php9691.9928.1231.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy-adsense-injection/easy-adsense-injection.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-injection/easy-adsense-injection.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
6 plugin tags: google adsense, ads manager, bypass ad blocker, ads injection, wordpress plugin...

easy-adsense-injection/easy-adsense-injection.php 92% from 13 tests

The main PHP file in "Easy Adsense Injection Plugin" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected279 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18422279

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin