87% lbk-sticky-adsense

Code Review | LBK Sticky Adsense

WordPress plugin LBK Sticky Adsense scored 87% from 54 tests.

About plugin

  • Plugin page: lbk-sticky-adsense
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1.0-5.7
  • WordPress version: 5.9.2
  • First release: Jul 9, 2021
  • Latest release: Jul 29, 2021
  • Number of updates: 8
  • Update frequency: every 2.8 days
  • Top authors: serviceslbk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 133 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by LBK Sticky Adsense
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0663.34 ▲3.81
Dashboard /wp-admin3.46 ▲0.0537.49 ▼10.42
Posts /wp-admin/edit.php3.68 ▲0.0442.52 ▼0.47
Add New Post /wp-admin/post-new.php6.92 ▼0.05102.68 ▼1,153.30
Media Library /wp-admin/upload.php3.33 ▲0.0426.59 ▼0.60
LBK Sticky Adsense /wp-admin/options-general.php?page=lbk-sticky_adsense3.3226.82

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for LBK Sticky Adsense
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲4616.15 ▲0.376.20 ▲0.022.21 ▼0.14
Dashboard /wp-admin2,893 ▲326.21 ▲0.02119.85 ▼20.11228.92 ▲65.63
Posts /wp-admin/edit.php2,696 ▲263.23 ▼0.0264.42 ▼49.04141.61 ▼12.05
Add New Post /wp-admin/post-new.php1,755 ▲321.56 ▲0.72466.64 ▼6.71204.90 ▲38.36
Media Library /wp-admin/upload.php1,696 ▲15.54 ▲0.00168.83 ▲10.26194.56 ▲9.56
LBK Sticky Adsense /wp-admin/options-general.php?page=lbk-sticky_adsense1,2302.5659.83160.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lbk-sticky-adsense/lbk_sticky_adsense.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/lbk-sticky-adsense/includes/inc.admin-options-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The General section of the settings.) image not found
The official readme.txt might help

lbk-sticky-adsense/lbk_sticky_adsense.php 77% from 13 tests

The main PHP file in "LBK Sticky Adsense" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("1.0.0" instead of "1.1.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lbk-sticky-adsense.php" instead of "lbk_sticky_adsense.php")
  • Domain Path: The domain path folder was not found ("/languages/")

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
Everything looks great! No dangerous files found in this plugin288 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP450199272
JavaScript12116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods15
▷ Static methods640.00%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin