84% elvez-slim-site-header

Code Review | Elvez Slim Site Header

WordPress plugin Elvez Slim Site Header scored84%from 54 tests.

About plugin

  • Plugin page: elvez-slim-site-h...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2020
  • Latest release: Dec 6, 2021
  • Number of updates: 14
  • Update frequency: every 26.9 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.70ms] Passed 4 tests

This is a short check of server-side resources used by Elvez Slim Site Header
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.19 ▲1.03
Dashboard /wp-admin3.49 ▲0.1547.53 ▼11.40
Posts /wp-admin/edit.php3.61 ▲0.2546.46 ▼0.56
Add New Post /wp-admin/post-new.php6.09 ▲0.2185.13 ▼15.88
Media Library /wp-admin/upload.php3.42 ▲0.1938.89 ▲3.65
Slim Site Header Admin /wp-admin/admin.php?page=elvez-slim-site-header3.4331.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 10 new options
New WordPress options
elvez_slim_site_header_hide_search_button
widget_recent-comments
elvez_slim_site_header_style_enabled
widget_theysaidso_widget
can_compress_scripts
elvez_slim_site_header_subscribe_email
widget_recent-posts
elvez_slim_site_header_subscription_id
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Elvez Slim Site Header
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.39 ▼1.191.61 ▼0.0843.65 ▼3.48
Dashboard /wp-admin2,249 ▲615.23 ▼0.67117.55 ▲6.5644.84 ▼3.82
Posts /wp-admin/edit.php2,132 ▲432.39 ▲0.4041.17 ▲5.7633.82 ▼4.49
Add New Post /wp-admin/post-new.php1,546 ▲1017.70 ▼5.49672.09 ▲66.6937.41 ▼12.30
Media Library /wp-admin/upload.php1,431 ▲464.54 ▲0.1398.27 ▼1.1742.48 ▼3.80
Slim Site Header Admin /wp-admin/admin.php?page=elvez-slim-site-header9942.5043.2128.37

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • elvez_slim_site_header_subscription_id
    • elvez_slim_site_header_hide_search_button
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • elvez_slim_site_header_subscribe_email
    • db_upgraded
    • widget_recent-posts
    • elvez_slim_site_header_style_enabled
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/elvez-slim-site-header/public/partials/elvez-slim-site-header-public-display.php
    • > /wp-content/plugins/elvez-slim-site-header/admin/partials/elvez-slim-site-header-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: logo, header

elvez-slim-site-header/elvez-slim-site-header.php 85% from 13 tests

The principal PHP file in "Elvez Slim Site Header" v. 1.0.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,914 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP233631,6681,784
JavaScript638140609
CSS34345309
PO File6132215212

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.65
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods138
▷ Static methods6345.65%
▷ Public methods13396.38%
▷ Protected methods00.00%
▷ Private methods53.62%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants52
▷ Global constants11.92%
▷ Class constants5198.08%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin