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.01MB] [CPU: ▼5.98ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Subheader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.70 ▲0.25 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.11 ▼18.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.65 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.13 ▼5.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.44 ▼0.51 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Responsive Subheader: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.27 | 1.77 ▲0.03 | 44.05 ▲1.62 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▲0.00 | 91.05 ▼0.25 | 39.77 ▼0.08 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 39.67 ▲3.45 | 35.11 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.18 ▼0.01 | 661.33 ▼47.76 | 58.54 ▲8.85 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.03 | 108.64 ▼2.16 | 47.21 ▼1.78 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/responsive-subheader/templates/responsive-subheader-template.php
- > /wp-content/plugins/responsive-subheader/responsive-subheader.php
- > /wp-content/plugins/responsive-subheader/templates/responsive-subheader-admin-settings-page.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/responsive-subheader/templates/responsive-subheader-admin-usage-display.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
8 plugin tags: slider, page-title, sub-header, featured image, color-picker...
responsive-subheader/responsive-subheader.php 92% from 13 tests
The main file in "Responsive Subheader" v. 1.0.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin1,223 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 173 | 319 | 701 |
CSS | 3 | 23 | 43 | 483 |
JavaScript | 4 | 2 | 11 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 79.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 24 | 72.73% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 8 | 24.24% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 1.97MB with 0.99MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Nivo/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
images/overlays/rs-overlay-circular.png | 10.30KB | 6.24KB | ▼ 39.38% |
images/overlays/rs-overlay-squared.png | 3.56KB | 0.49KB | ▼ 86.34% |
images/overlays/rs-overlay-no-img.png | 0.22KB | 0.12KB | ▼ 48.25% |
assets/screenshot-2.png | 131.55KB | 48.19KB | ▼ 63.37% |