Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.62ms] Passed 4 tests
Server-side resources used by Timer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.71 ▼1.10 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.99 ▼2.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.07 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.59 ▼15.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.47 ▲0.32 |
Timer Settings /wp-admin/options-general.php?page=timer_setting | 3.19 | 31.28 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Timer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.45 ▼0.95 | 8.30 ▲6.63 | 42.33 ▼4.95 |
Dashboard /wp-admin | 2,199 ▲25 | 5.57 ▼0.09 | 92.24 ▼0.76 | 40.39 ▼1.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.08 | 36.35 ▼1.62 | 32.45 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.31 ▲0.27 | 716.49 ▲33.90 | 54.49 ▼6.91 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.16 ▼0.02 | 99.43 ▼18.49 | 40.62 ▼7.88 |
Timer Settings /wp-admin/options-general.php?page=timer_setting | 1,110 | 2.00 | 24.55 | 29.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=timer_setting
- > Notice in wp-content/plugins/timer/timer.php+29
Undefined index: act
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/timer/timer.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/timer/timersetting.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Show Timer), #2 (Timer setting)
timer/timer.php Passed 13 tests
The principal PHP file in "Timer" v. 1.0 is loaded by WordPress automatically on each request
79 characters long description:
This is Timer Plugin. So you can set any date as countdown. It shows days left.
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
There were no executable files found in this plugin326 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 10 | 167 |
JavaScript | 1 | 31 | 16 | 83 |
CSS | 1 | 12 | 4 | 76 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.54KB | 3.31KB | ▼ 40.36% |
screenshot-2.png | 20.29KB | 9.36KB | ▼ 53.86% |