Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.44ms] Passed 4 tests
Server-side resources used by Fancy Top Bar Countdown
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.15 ▼8.60 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.57 ▼2.55 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.11 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 96.34 ▲1.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.36 ▲2.69 |
Top Bar Count Down /wp-admin/admin.php?page=nn-count-down | 3.83 | 51.12 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_countdown_99plugin |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Fancy Top Bar Countdown: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲221 | 14.27 ▼0.13 | 9.36 ▲7.39 | 37.55 ▼6.50 |
Dashboard /wp-admin | 2,244 ▲56 | 4.97 ▼0.90 | 100.96 ▼4.69 | 42.63 ▼2.69 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.25 ▲0.20 | 41.15 ▲0.04 | 34.98 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,556 ▲26 | 18.67 ▲0.36 | 628.65 ▲3.65 | 55.89 ▲4.29 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.44 ▲0.23 | 95.48 ▼8.13 | 41.76 ▲0.33 |
Top Bar Count Down /wp-admin/admin.php?page=nn-count-down | 15,346 | 4.77 | 143.93 | 32.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_countdown_99plugin
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/fancy-top-bar-countdown/includes/class-nn-settings-options.php:47
- > PHP Fatal error
Uncaught Error: Class 'WP_widget' not found in wp-content/plugins/fancy-top-bar-countdown/includes/widget-nn-count-down.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-top-bar-countdown/includes/admin-menus.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-top-bar-countdown/includes/scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fancy-top-bar-countdown/includes/functions.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fancy-top-bar-countdown/includes/framework/bootstrap.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-top-bar-countdown/includes/framework/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fancy-top-bar-countdown/includes/framework/select2/cmb-field-select2.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fancy-top-bar-countdown/includes/shortcode-nn-count-down.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
- Tags: There are too many tags (13 tag instead of maximum 10)
fancy-top-bar-countdown/init.php 62% from 13 tests
The main file in "Fancy Top Bar Countdown" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.1")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fancy-top-bar-countdown.php" instead of "init.php")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
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
No dangerous file extensions were detected19,964 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 2,064 | 1,211 | 11,060 |
PHP | 28 | 1,189 | 2,400 | 4,631 |
JavaScript | 14 | 396 | 868 | 3,633 |
SVG | 1 | 0 | 0 | 640 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 33.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 219 | |
▷ Static methods | 22 | 10.05% |
▷ Public methods | 205 | 93.61% |
▷ Protected methods | 8 | 3.65% |
▷ Private methods | 6 | 2.74% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/framework/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/framework/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/framework/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/framework/select2/js/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/img/pattern.png | 2.74KB | 0.10KB | ▼ 96.43% |