Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼3.73ms] Passed 4 tests
Server-side resources used by Uji Countdown
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 41.15 ▲0.16 |
Dashboard /wp-admin | 3.78 ▲0.43 | 47.14 ▼13.23 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 50.18 ▲1.16 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 84.67 ▼3.00 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.43 ▲2.08 |
Uji Countdown /wp-admin/options-general.php?page=ujicountdown | 3.61 | 32.30 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 114 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_uji_counter |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
uji-countdown-version |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uji Countdown
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.48 ▲0.08 | 1.71 ▼0.23 | 47.00 ▲3.09 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 106.91 ▼10.89 | 38.51 ▼9.34 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.06 | 41.74 ▲3.35 | 37.19 ▲0.20 |
Add New Post /wp-admin/post-new.php | 6,202 ▲4,683 | 19.52 ▼3.76 | 894.70 ▲200.00 | 59.39 ▲7.58 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▼0.00 | 98.81 ▼6.37 | 42.39 ▼1.76 |
Uji Countdown /wp-admin/options-general.php?page=ujicountdown | 934 | 2.14 | 24.21 | 44.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_uji_counter
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- uji-countdown-version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/uji-countdown/assets/googlefonts.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/uji-countdown/views/admin.php:11
- > 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 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
uji-countdown/ujicountdown.php 85% from 13 tests
"Uji Countdown" version 2.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("uji-countdown.php" instead of "ujicountdown.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,720 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 136 | 178 | 1,710 |
PHP | 12 | 365 | 692 | 1,666 |
CSS | 8 | 180 | 215 | 698 |
PO File | 9 | 129 | 129 | 387 |
Sass | 3 | 29 | 1 | 135 |
JSON | 2 | 0 | 0 | 124 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 75.75 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 9 | 10.59% |
▷ Public methods | 68 | 80.00% |
▷ Protected methods | 2 | 2.35% |
▷ Private methods | 15 | 17.65% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
44 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-rec.png | 3.76KB | 2.63KB | ▼ 30.20% |
assets/images/ucount-icon@x2.png | 10.36KB | 4.03KB | ▼ 61.04% |
assets/images/align-right.png | 0.54KB | 0.57KB | 0.00% |
assets/images/align-center.png | 0.56KB | 0.66KB | 0.00% |
assets/images/ucount-icon.png | 5.62KB | 2.01KB | ▼ 64.30% |