84% kontur-admin-style

Code Review | kontur Admin Style

WordPress plugin kontur Admin Style scored84%from 54 tests.

About plugin

  • Plugin page: kontur-admin-style
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.3
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Jun 16, 2023
  • Number of updates: 19
  • Update frequency: every 27.7 days
  • Top authors: netzaufsicht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,064 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.62ms] Passed 4 tests

This is a short check of server-side resources used by kontur Admin Style
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.67 ▼3.83
Dashboard /wp-admin3.45 ▲0.1550.87 ▼1.88
Posts /wp-admin/edit.php3.50 ▲0.1550.04 ▲3.19
Add New Post /wp-admin/post-new.php6.03 ▲0.1586.51 ▼11.28
Media Library /wp-admin/upload.php3.38 ▲0.1540.10 ▲2.52
kontur Admin Style /wp-admin/themes.php?page=kontur-admin-style3.5238.83

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 21 new options
New WordPress options
kontur_admin_style_adminbar_background
kontur_admin_adminmenuback
kontur_style_admin_use_logo
kontur-settings-checkbox-media
kontur_admin_style_logo_background_image
kontur-settings-checkbox-dashboard
kontur-settings-checkbox-login
kontur_style_admin_logo
can_compress_scripts
kontur_admin_current_sub_menu
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for kontur Admin Style
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.64 ▼0.674.33 ▲2.2538.33 ▼6.16
Dashboard /wp-admin2,212 ▲245.85 ▼0.06106.76 ▼8.2444.32 ▼5.41
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0335.89 ▼3.1534.15 ▼4.39
Add New Post /wp-admin/post-new.php1,539 ▲1123.30 ▲0.18677.55 ▲34.3359.25 ▼1.29
Media Library /wp-admin/upload.php1,391 ▲94.20 ▼0.08107.31 ▲6.2746.17 ▲2.48
kontur Admin Style /wp-admin/themes.php?page=kontur-admin-style1,9044.8594.8177.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kontur-admin-style/includes/kontur-admin-style-backend.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kontur-admin-style/admin/add-ons/kontur-admin-style-login.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
7 plugin tags: admin, adminbar icon, custom admin, branding, admin theme...

kontur-admin-style/kontur-admin-style.php 92% from 13 tests

"kontur Admin Style" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 256 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,634 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS2418111,611
PHP10437208877
JavaScript23420132
SVG20214

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/kontur_admin_style_login_logo.png23.62KB6.90KB▼ 70.79%
admin/images/werbekontur_de.png8.61KB2.61KB▼ 69.67%