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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.59ms] Passed 4 tests
This is a short check of server-side resources used by Browser Caching with .htaccess
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.74 ▼4.62 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.98 ▼2.38 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.52 ▲8.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.59 ▼29.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.01 ▼1.82 |
Browser Caching /wp-admin/tools.php?page=bch_caching_submenu | 3.21 | 29.51 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Browser Caching with .htaccess
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 14.10 ▼0.29 | 5.59 ▲3.66 | 43.06 ▼0.51 |
Dashboard /wp-admin | 2,214 ▲26 | 5.88 ▲0.94 | 109.80 ▼8.89 | 40.74 ▼4.14 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▼0.00 | 40.33 ▼1.41 | 35.51 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.43 ▲0.32 | 661.79 ▼17.44 | 57.50 ▲5.02 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.27 ▼0.03 | 108.98 ▲7.05 | 47.62 ▲2.19 |
Browser Caching /wp-admin/tools.php?page=bch_caching_submenu | 983 | 1.81 | 28.94 | 47.60 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=bch_caching_submenu
- > Notice in wp-content/plugins/browser-caching-with-htaccess/adminpages/admin.php+52
Undefined index: modified_hidden_bch
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/browser-caching-with-htaccess/open_htaccess.php
- > /wp-content/plugins/browser-caching-with-htaccess/caching.php
- > /wp-content/plugins/browser-caching-with-htaccess/caching_modified.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-caching-with-htaccess/adminpages/admin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The Plugin Dashboard), #2 (The impact of a sample .htaccess file, shown after the 'check .htaccess file' button was clicked), #3 (Error message after 'activate Browser Caching' button was clicked and no .htaccess file was found), #4 (Success message after Browser Caching was successfully activated), #5 (To open the modification menu press the 'modify Expires' button), #6 (Error message that occurs when you are already using Browser Caching)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== browser-caching-with-htaccess ===
)
browser-caching-with-htaccess/caching.php 92% from 13 tests
This is the main PHP file of "Browser Caching with .htaccess" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("browser-caching-with-htaccess.php" instead of "caching.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin352 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 116 | 329 |
CSS | 1 | 1 | 0 | 18 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 31.43KB | 10.63KB | ▼ 66.19% |
screenshot-1.png | 34.56KB | 15.36KB | ▼ 55.54% |
screenshot-4.png | 47.30KB | 21.31KB | ▼ 54.94% |
screenshot-3.png | 42.55KB | 19.10KB | ▼ 55.10% |
screenshot-6.png | 17.64KB | 9.32KB | ▼ 47.20% |