Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.30ms] Passed 4 tests
Analyzing server-side resources used by Lightweight Countdown Timers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.28 ▼3.58 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.95 ▲1.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.48 ▼4.67 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.92 ▼14.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 40.58 ▲4.00 |
All timers /wp-admin/edit.php?post_type=lwcd-timer | 3.31 | 37.65 |
Add new /wp-admin/post-new.php?post_type=lwcd-timer | 3.34 | 45.29 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lightweight Countdown Timers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.69 ▲0.25 | 1.53 ▼0.22 | 40.97 ▼6.89 |
Dashboard /wp-admin | 2,222 ▲42 | 5.62 ▲0.09 | 90.30 ▼0.12 | 36.53 ▼4.51 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.95 ▼0.07 | 38.91 ▼2.08 | 35.60 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.09 ▲0.03 | 659.12 ▲6.70 | 55.51 ▼8.88 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▼0.17 | 111.67 ▼2.40 | 46.49 ▼3.13 |
All timers /wp-admin/edit.php?post_type=lwcd-timer | 1,106 | 1.98 | 35.44 | 28.29 |
Add new /wp-admin/post-new.php?post_type=lwcd-timer | 1,767 | 2.81 | 59.10 | 58.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lwcd-timer
- > Warning in wp-content/plugins/lightweight-countdown-timers/includes/admin/meta-boxes/views/html-timer-settings.php+39
array_key_exists() expects parameter 2 to be array, string given
SRP Passed 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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: timers, countdown
lightweight-countdown-timers/lightweight-countdown-timers.php 92% from 13 tests
"Lightweight Countdown Timers" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin928 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 252 | 428 | 653 |
PO File | 1 | 59 | 59 | 150 |
JavaScript | 2 | 30 | 18 | 110 |
Sass | 1 | 7 | 0 | 14 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 35 | |
▷ Static methods | 19 | 54.29% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 1 | 2.86% |
▷ Private methods | 4 | 11.43% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin