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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 41.19 ▲1.03 |
Dashboard /wp-admin | 3.49 ▲0.15 | 47.53 ▼11.40 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.46 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 85.13 ▼15.88 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.89 ▲3.65 |
Slim Site Header Admin /wp-admin/admin.php?page=elvez-slim-site-header | 3.43 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 13.39 ▼1.19 | 1.61 ▼0.08 | 43.65 ▼3.48 |
Dashboard /wp-admin | 2,249 ▲61 | 5.23 ▼0.67 | 117.55 ▲6.56 | 44.84 ▼3.82 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.39 ▲0.40 | 41.17 ▲5.76 | 33.82 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,546 ▲10 | 17.70 ▼5.49 | 672.09 ▲66.69 | 37.41 ▼12.30 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.54 ▲0.13 | 98.27 ▼1.17 | 42.48 ▼3.80 |
Slim Site Header Admin /wp-admin/admin.php?page=elvez-slim-site-header | 994 | 2.50 | 43.21 | 28.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 363 | 1,668 | 1,784 |
JavaScript | 6 | 38 | 140 | 609 |
CSS | 3 | 43 | 45 | 309 |
PO File | 6 | 132 | 215 | 212 |
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 code | 0.19 |
Average class complexity | 9.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 63 | 45.65% |
▷ Public methods | 133 | 96.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.62% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 52 | |
▷ Global constants | 1 | 1.92% |
▷ Class constants | 51 | 98.08% |
▷ Public constants | 51 | 100.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