Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼143.39ms] Passed 4 tests
A check of server-side resources used by Last-Modified and If-Modified-Since Headers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.12 | 36.62 ▲14.02 |
Dashboard /wp-admin | 3.07 ▲0.01 | 44.61 ▼11.45 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.93 ▼2.25 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 98.25 ▼555.53 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 27.64 ▼4.34 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Last-Modified and If-Modified-Since Headers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.88 ▲0.01 | 10.04 ▼0.56 | 53.51 ▼0.11 |
Dashboard /wp-admin | 2,973 ▲42 | 5.89 ▼0.02 | 146.48 ▼2.47 | 124.18 ▲3.41 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 68.24 ▼6.90 | 95.02 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,594 ▼89 | 18.78 ▲0.42 | 405.45 ▲3.83 | 115.94 ▲0.09 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 4.98 ▼0.05 | 150.87 ▼3.71 | 131.05 ▲10.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/last-modified-and-if-modified-since-headers/last-modified-and-if-modified-since-headers.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires php: Invalid plugin version format
last-modified-and-if-modified-since-headers/last-modified-and-if-modified-since-headers.php 92% from 13 tests
The primary PHP file in "Last-Modified and If-Modified-Since Headers" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires PHP: Required version number formatted incorrectly (ex. "7.0" instead of "5.3+")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected21 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 12 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
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 | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin