84% simple-admin-branding

Code Review | Simple Admin Branding

WordPress plugin Simple Admin Branding scored84%from 54 tests.

About plugin

  • Plugin page: simple-admin-bran...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Jan 9, 2022
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: jbouganim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 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.06MB] [CPU: ▼4.82ms] Passed 4 tests

An overview of server-side resources used by Simple Admin Branding
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.0639.06 ▼6.44
Dashboard /wp-admin3.62 ▲0.0649.37 ▼9.45
Posts /wp-admin/edit.php3.74 ▲0.0652.22 ▼0.28
Add New Post /wp-admin/post-new.php6.20 ▲0.06100.03 ▲3.02
Media Library /wp-admin/upload.php3.55 ▲0.0636.82 ▼3.12

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple Admin Branding
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲2014.37 ▼0.221.71 ▼0.1242.67 ▲2.50
Dashboard /wp-admin2,195 ▲155.65 ▼0.0191.96 ▼1.6443.26 ▼0.35
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0740.71 ▼1.1437.92 ▼0.94
Add New Post /wp-admin/post-new.php1,546 ▲2023.33 ▲5.65597.60 ▼98.3154.37 ▼1.17
Media Library /wp-admin/upload.php1,397 ▼64.22 ▼0.04100.96 ▼13.8942.56 ▼6.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ES_Simple_Admin_Branding\\plugin_basename() in wp-content/plugins/simple-admin-branding/simple-admin-branding.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: custom login, login, login branding, customizer, admin branding

simple-admin-branding/simple-admin-branding.php Passed 13 tests

The main file in "Simple Admin Branding" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Lightweight plugin to brand the WordPress login page using the built-in site icon assets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin348 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32473284
PO File2263464

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin