Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼149.97ms] Passed 4 tests
This is a short check of server-side resources used by WebTimer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 43.79 ▲8.21 |
Dashboard /wp-admin | 3.09 ▲0.04 | 54.09 ▼7.75 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 48.70 ▼7.74 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 98.68 ▼577.31 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 34.33 ▼7.08 |
WebTimer /wp-admin/options-general.php?page=my-slug | 3.00 | 30.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WebTimer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,789 ▲217 | 16.21 ▲0.49 | 14.87 ▲5.51 | 48.33 ▼4.85 |
Dashboard /wp-admin | 2,972 ▲41 | 6.10 ▼0.02 | 154.07 ▼49.25 | 118.70 ▼4.37 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▼0.00 | 65.52 ▼20.59 | 97.92 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,686 ▲101 | 18.43 ▲1.74 | 474.85 ▲17.20 | 117.64 ▼10.78 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.01 | 169.92 ▼14.60 | 121.47 ▼16.46 |
WebTimer /wp-admin/options-general.php?page=my-slug | 1,096 | 2.22 | 68.59 | 104.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 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/webtimer-plw/webtimer-plw.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
6 plugin tags: retard, retardement, delay, contents, contenu...
webtimer-plw/webtimer-plw.php 85% from 13 tests
"WebTimer" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The plugin description must be longer than 10 characters (currently 0 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected237 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 12 | 157 |
PO File | 1 | 29 | 72 | 80 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo-plw.png | 11.47KB | 6.51KB | ▼ 43.22% |