83% easy-ad-placement

Code Review | Easy Ad Placement - for AdSense and other Ads

WordPress plugin Easy Ad Placement - for AdSense and other Ads scored83%from 54 tests.

About plugin

  • Plugin page: easy-ad-placement
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: May 22, 2014
  • Latest release: Oct 19, 2014
  • Number of updates: 15
  • Update frequency: every 10.0 days
  • Top authors: wassereimer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,567 total downloads

Benchmarks

Plugin footprint 83% 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.08MB] [CPU: ▼5.34ms] Passed 4 tests

An overview of server-side resources used by Easy Ad Placement - for AdSense and other Ads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.93 ▼4.15
Dashboard /wp-admin3.40 ▲0.0643.62 ▼17.31
Posts /wp-admin/edit.php3.45 ▲0.1045.41 ▲1.16
Add New Post /wp-admin/post-new.php5.98 ▲0.1082.55 ▲0.29
Media Library /wp-admin/upload.php3.32 ▲0.0934.09 ▼0.19
Easy Ad Placement /wp-admin/options-general.php?page=easy-ad-placement/easy-ad-placement.php3.2936.49

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Ad Placement - for AdSense and other Ads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.65 ▼0.731.74 ▼0.3437.35 ▼6.62
Dashboard /wp-admin2,210 ▲195.80 ▲0.9699.60 ▼7.5239.52 ▼4.08
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0434.59 ▼0.8630.62 ▼5.78
Add New Post /wp-admin/post-new.php1,536 ▲323.36 ▲0.19682.60 ▼6.3060.98 ▲8.70
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.04107.38 ▲2.0144.82 ▼1.29
Easy Ad Placement /wp-admin/options-general.php?page=easy-ad-placement/easy-ad-placement.php1,3662.0727.6131.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-ad-placement/shortcodes.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-ad-placement/shortcodes.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Options-Menu)
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-ad-placement === )
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

easy-ad-placement/easy-ad-placement.php Passed 13 tests

The principal PHP file in "Easy Ad Placement - for AdSense and other Ads" v. 1.4 is loaded by WordPress automatically on each request
83 characters long description:
A great Wordpress Plugin to place Ads from AdSense and other Ads anywhere you want.

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
There were no executable files found in this plugin496 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36720445
PO File11611151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin