79% brand-in-content

Code Review | Brand In Content

WordPress plugin Brand In Content scored79%from 54 tests.

About plugin

  • Plugin page: brand-in-content
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Jul 27, 2015
  • Latest release: Nov 24, 2020
  • Number of updates: 27
  • Update frequency: every 72.2 days
  • Top authors: AboZain (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Brand In Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.89 ▼0.78
Dashboard /wp-admin3.35 ▲0.0155.34 ▼11.46
Posts /wp-admin/edit.php3.47 ▲0.1254.80 ▲4.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.52 ▼0.50
Media Library /wp-admin/upload.php3.26 ▲0.0339.29 ▲1.75
Brand In Content /wp-admin/options-general.php?page=brand-in-content3.2234.46

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Brand In Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲19514.87 ▲0.571.87 ▼0.1343.38 ▼3.17
Dashboard /wp-admin2,350 ▲1626.43 ▲0.53131.17 ▲24.3945.23 ▼0.21
Posts /wp-admin/edit.php2,253 ▲1643.35 ▲1.3952.03 ▲15.8233.39 ▼6.80
Add New Post /wp-admin/post-new.php1,536 ▲2223.22 ▲5.60637.36 ▼30.3538.31 ▼23.87
Media Library /wp-admin/upload.php1,389 ▼24.21 ▲0.0492.91 ▼10.2149.01 ▲4.02
Brand In Content /wp-admin/options-general.php?page=brand-in-content1,0993.1539.6429.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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
    • > GET request to /wp-admin/options-general.php?page=brand-in-content
    • > 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=brand-in-content
    • > 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brand-in-content/brand-in-content.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: image, brand, content

brand-in-content/brand-in-content.php Passed 13 tests

The main PHP script in "Brand In Content" version 1.1.1 is automatically included on every request by WordPress
77 characters long description:
Replace your Brand name with Image Logo or custom style in WordPress Content.

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
Success! There were no dangerous files found in this plugin193 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12327140
PO File16612046
HTML1007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected