68% adsplacer

Code Review | AdsPlace'r - Ad Manager, Inserter, AdSense Ads

WordPress plugin AdsPlace'r - Ad Manager, Inserter, AdSense Ads scored68%from 54 tests.

About plugin

  • Plugin page: adsplacer
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: Jun 12, 2021
  • Number of updates: 19
  • Update frequency: every 111.6 days
  • Top authors: mojwp (94.74%)wpshopbiz (10.53%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /38,448 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.72MB] [CPU: ▼52.47ms] Passed 4 tests

A check of server-side resources used by AdsPlace'r - Ad Manager, Inserter, AdSense Ads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.206.93 ▼35.25
Dashboard /wp-admin2.29 ▼1.029.32 ▼40.20
Posts /wp-admin/edit.php2.29 ▼1.078.87 ▼44.47
Add New Post /wp-admin/post-new.php2.29 ▼3.6010.20 ▼89.94
Media Library /wp-admin/upload.php2.29 ▼0.949.71 ▼27.19
Instruction /wp-admin/admin.php?page=adsplacer_support2.299.44
Settings /wp-admin/admin.php?page=adsplacer2.299.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AdsPlace'r - Ad Manager, Inserter, AdSense Ads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.36 ▲0.031.94 ▲0.4345.09 ▲1.86
Dashboard /wp-admin2,222 ▲485.63 ▲0.0591.99 ▼1.3237.87 ▼2.96
Posts /wp-admin/edit.php2,133 ▲331.98 ▲0.0439.19 ▼0.9137.48 ▼0.83
Add New Post /wp-admin/post-new.php6,272 ▲4,73518.72 ▲0.69921.63 ▲308.0073.58 ▼8.53
Media Library /wp-admin/upload.php1,427 ▲274.25 ▲0.0299.67 ▼2.0942.67 ▲0.65
Instruction /wp-admin/admin.php?page=adsplacer_support8642.0025.6431.02
Settings /wp-admin/admin.php?page=adsplacer4,18117.51507.8377.66

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/adsplacer/adsplacer.php+45
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=adsplacer
    • > Notice in wp-content/plugins/adsplacer/adsplacer.php+533
    Trying to access array offset on value of type bool
  • 66 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=adsplacer
    • > Notice in wp-content/plugins/adsplacer/adsplacer.php+533
    Trying to access array offset on value of type null

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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adsplacer/adsplacer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

adsplacer/adsplacer.php Passed 13 tests

The main file in "AdsPlace'r - Ad Manager, Inserter, AdSense Ads" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Manage ad blocks in the articles separately for visitors to the PC and mobile OS

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin791 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP18511567
CSS1200125
PO File1192361
JavaScript17038

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin