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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.63ms] Passed 4 tests
A check of server-side resources used by Themeflection Numbers - Number Counter and Animated Numbers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.65 ▼3.99 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.31 ▼2.08 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.01 ▲7.23 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 86.25 ▼7.40 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.19 ▲2.95 |
Licenses /wp-admin/admin.php?page=ed-licencing | 2.05 | 5.98 |
Addons /wp-admin/admin.php?page=tf-addons | 3.39 | 32.36 |
About /wp-admin/admin.php?page=tf-dashboard | 3.35 | 33.43 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 108 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Themeflection Numbers - Number Counter and Animated Numbers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲179 | 14.07 ▼0.36 | 5.05 ▲3.38 | 40.34 ▼7.05 |
Dashboard /wp-admin | 2,241 ▲53 | 5.01 ▼0.02 | 101.51 ▼15.00 | 42.79 ▼3.74 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.28 ▲0.27 | 42.15 ▲2.30 | 33.38 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.39 ▲2.32 | 711.36 ▲67.69 | 59.71 ▲0.18 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.36 ▲0.17 | 96.85 ▼6.38 | 42.29 ▼2.74 |
Licenses /wp-admin/admin.php?page=ed-licencing | 45 | 0.44 | 0.23 | 9.34 |
Addons /wp-admin/admin.php?page=tf-addons | 924 | 2.15 | 27.36 | 48.93 |
About /wp-admin/admin.php?page=tf-dashboard | 1,446 | 11.07 | 258.85 | 81.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% 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 errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=ed-licencing
- > Error in wp-content/plugins/tf-numbers-number-counter-animaton/inc/license.php+184
Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/tf-numbers-number-counter-animaton/inc/license.php:184
Stack trace:
#0 wp-content/plugins/tf-numbers-number-counter-animaton/tf-random_numbers.php(65): require_once()
#1 wp-settings.php(462): include_once('/var/www/wordpr...')
#2 wp-config.php(129): require_once('/var/www/wordpr...')
#3 wp-load.php(50): require_once('/var/www/wordpr...')
#4 wp-admin/admin.php(34): require_once('/var/www/wordpr...')
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=ed-licencing
- > User notice in wp-includes/functions.php+5905
Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/admin.php?page=ed-licencing
- > User notice in wp-includes/functions.php+5905
Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
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
Please fix the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/tf-numbers-number-counter-animaton/cmb2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tf-numbers-number-counter-animaton/inc/license.php:3
- > PHP Fatal error
Uncaught Error: Interface 'TFNumbersOpsInterface' not found in wp-content/plugins/tf-numbers-number-counter-animaton/options/numbers.php:4
- > PHP Fatal error
Uncaught Error: Interface 'TFNumbersOpsInterface' not found in wp-content/plugins/tf-numbers-number-counter-animaton/options/numbers-style.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tf-numbers-number-counter-animaton/inc/pages/addons.php:9
- > PHP Fatal error
Uncaught Error: Interface 'TFNumbersOpsInterface' not found in wp-content/plugins/tf-numbers-number-counter-animaton/options/general.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tf-numbers-number-counter-animaton/cmb2/init.php:71
- > PHP Fatal error
Uncaught Error: Interface 'TFNumbersOpsInterface' not found in wp-content/plugins/tf-numbers-number-counter-animaton/options/layouts.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tf-numbers-number-counter-animaton/inc/pages/dashboard.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tf-numbers-number-counter-animaton/inc/vc-shortcode.php:40
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ed-licencing
- > Network (severe)
wp-admin/admin.php?page=ed-licencing - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: numbers, numbers counter, animated numbers, numbers showcase, number animation...
tf-numbers-number-counter-animaton/tf-random_numbers.php 85% from 13 tests
"Themeflection Numbers - Number Counter and Animated Numbers" version 2.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("tf-numbers-number-counter-animaton.php" instead of "tf-random_numbers.php")
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
There were no executable files found in this plugin14,302 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,123 | 2,179 | 4,931 |
CSS | 6 | 1,023 | 1,029 | 4,320 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 11 | 168 | 23 | 1,116 |
JavaScript | 7 | 216 | 151 | 1,018 |
HTML | 1 | 35 | 1 | 246 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 26.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 269 | |
▷ Static methods | 47 | 17.47% |
▷ Public methods | 250 | 92.94% |
▷ Protected methods | 9 | 3.35% |
▷ Private methods | 10 | 3.72% |
Functions | 30 | |
▷ Named functions | 30 | 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
24 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/n8.png | 15.97KB | 6.73KB | ▼ 57.85% |
cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/n1.png | 3.18KB | 2.05KB | ▼ 35.43% |
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |