84% add-logo-backoffice-easily

Code Review | Add Logo Backoffice Easily

WordPress plugin Add Logo Backoffice Easily scored84%from 54 tests.

About plugin

  • Plugin page: add-logo-backoffi...
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2023
  • Latest release: Jun 6, 2023
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: eventtex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Add Logo Backoffice Easily
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.09 ▼0.18
Dashboard /wp-admin3.34 ▼0.0048.06 ▼16.85
Posts /wp-admin/edit.php3.46 ▲0.1150.14 ▲2.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.07 ▼21.40
Media Library /wp-admin/upload.php3.25 ▲0.0236.71 ▲3.78

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Add Logo Backoffice Easily
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲20714.67 ▲0.451.63 ▼0.1540.37 ▼2.85
Dashboard /wp-admin2,359 ▲1716.44 ▲1.57134.26 ▲32.2840.96 ▲4.33
Posts /wp-admin/edit.php2,265 ▲1763.37 ▲1.3747.60 ▲10.0332.28 ▼2.51
Add New Post /wp-admin/post-new.php1,544 ▲2522.99 ▼0.21582.19 ▼115.8632.74 ▼19.10
Media Library /wp-admin/upload.php1,404 ▲164.12 ▼0.0578.59 ▼28.4242.49 ▼2.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-logo-backoffice-easily/Add-Logo-BO.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: add logo backoffice, logo admin

add-logo-backoffice-easily/Add-Logo-BO.php 92% from 13 tests

The main file in "Add Logo Backoffice Easily" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-logo-backoffice-easily.php" instead of "Add-Logo-BO.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161862
JavaScript13223

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions7
▷ Named functions7100.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 images were found in this plugin