Benchmarks
Plugin footprint 65% 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: ▲1.02MB] [CPU: ▲12.39ms] Passed 4 tests
An overview of server-side resources used by HurryTimer - An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 49.73 ▲10.04 |
Dashboard /wp-admin | 4.32 ▲1.02 | 58.66 ▲11.79 |
Posts /wp-admin/edit.php | 4.37 ▲1.02 | 62.39 ▲14.24 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.04 | 118.81 ▲26.09 |
Media Library /wp-admin/upload.php | 4.24 ▲1.01 | 48.85 ▲13.47 |
Add Campaign /wp-admin/post-new.php?post_type=hurrytimer_countdown | 4.86 | 66.02 |
Settings /wp-admin/admin.php?page=hurrytimer_settings | 4.28 | 41.57 |
All Campaigns /wp-admin/edit.php?post_type=hurrytimer_countdown | 4.32 | 50.33 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 274 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_hurrytimer_evergreen |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
hurrytimer_upgraded_2_2_28 |
hurrytimer_version |
hurrytimer_css_build_hash |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HurryTimer - An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 13.28 ▼1.02 | 2.20 ▲0.46 | 36.96 ▼9.58 |
Dashboard /wp-admin | 2,307 ▲125 | 5.88 ▲0.07 | 102.06 ▼9.62 | 38.44 ▼2.76 |
Posts /wp-admin/edit.php | 2,190 ▲98 | 2.03 ▼0.01 | 40.25 ▼0.31 | 30.64 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.36 ▲0.27 | 618.23 ▼36.87 | 55.85 ▼10.38 |
Media Library /wp-admin/upload.php | 1,492 ▲104 | 4.24 ▲0.04 | 101.80 ▼1.81 | 42.17 ▼4.69 |
Add Campaign /wp-admin/post-new.php?post_type=hurrytimer_countdown | 4,664 | 7.17 | 317.16 | 132.63 |
Settings /wp-admin/admin.php?page=hurrytimer_settings | 1,283 | 3.72 | 54.88 | 25.95 |
All Campaigns /wp-admin/edit.php?post_type=hurrytimer_countdown | 1,545 | 3.79 | 53.18 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_hurrytimer_evergreen
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- hurrytimer_version
- widget_recent-posts
- hurrytimer_css_build_hash
- widget_recent-comments
- hurrytimer_upgraded_2_2_28
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hurrytimer/admin/templates/wc-condition-group.php
- > /wp-content/plugins/hurrytimer/admin/templates/actions-tab.php
- > /wp-content/plugins/hurrytimer/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/hurrytimer/admin/templates/upgrade-banner.php
- > /wp-content/plugins/hurrytimer/admin/templates/footer-rate-plugin.php
- > /wp-content/plugins/hurrytimer/admin/templates/customcss-tab-content.php
- 89× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTSymfony\\Component\\Translation\\PluralizationRules' not found in wp-content/plugins/hurrytimer/includes/Dependencies/Carbon/Lang/oc.php:12
- > PHP Notice
Undefined index: argc in wp-content/plugins/hurrytimer/vendor/symfony/translation/Resources/bin/translation-status.php on line 46
- > PHP Fatal error
Uncaught Error: Interface 'HTSymfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/hurrytimer/vendor/symfony/translation/LoggingTranslator.php:23
- > PHP Fatal error
Uncaught Error: Class 'HTSymfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/hurrytimer/vendor/symfony/translation/Loader/JsonFileLoader.php:21
- > PHP Fatal error
Uncaught Error: Class 'HTSymfony\\Component\\DependencyInjection\\Compiler\\AbstractRecursivePass' not found in wp-content/plugins/hurrytimer/vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php:23
- > PHP Fatal error
Uncaught Error: Class 'HTSymfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/hurrytimer/vendor/symfony/translation/Dumper/PhpFileDumper.php:21
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/hurrytimer/admin/templates/actions-tab.php on line 17
- > PHP Notice
Undefined index: argv in wp-content/plugins/hurrytimer/vendor/symfony/translation/Resources/bin/translation-status.php on line 47
- > PHP Warning
include(): Failed opening 'HURRYT_DIRadmin/templates/wc-condition.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/hurrytimer/admin/templates/wc-condition-group.php on line 10
- > PHP Warning
array_slice() expects parameter 1 to be array, null given in wp-content/plugins/hurrytimer/vendor/symfony/translation/Resources/bin/translation-status.php on line 54
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=hurrytimer_countdown
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=hurrytimer_countdown 1300 The specified value "auto" cannot be parsed, or is out of range.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Screenshots: These screenshots require images: #9 (Call-to-Action button settings), #10 (Sticky Bar settings)
hurrytimer/hurrytimer.php 92% from 13 tests
Analyzing the main PHP file in "HurryTimer - An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce" version 2.9.2
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected65,119 lines of code in 250 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 8,504 | 30 | 29,240 |
PHP | 221 | 3,827 | 8,561 | 19,540 |
JavaScript | 10 | 1,586 | 1,601 | 11,997 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 5 | 0 | 0 | 760 |
PO File | 2 | 322 | 392 | 675 |
SVG | 5 | 0 | 2 | 104 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 19.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 16 | |
Traits | 3 | |
Classes | 96 | |
▷ Abstract classes | 6 | 6.25% |
▷ Concrete classes | 90 | 93.75% |
▷ Final classes | 1 | 1.11% |
Methods | 1,116 | |
▷ Static methods | 206 | 18.46% |
▷ Public methods | 957 | 85.75% |
▷ Protected methods | 67 | 6.00% |
▷ Private methods | 92 | 8.24% |
Functions | 116 | |
▷ Named functions | 66 | 56.90% |
▷ Anonymous functions | 50 | 43.10% |
Constants | 120 | |
▷ Global constants | 9 | 7.50% |
▷ Class constants | 111 | 92.50% |
▷ Public constants | 111 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
(invalid) assets/images/action.png | 1.47KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/store.png | 0.65KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/timer.png | 1.59KB | 0.00KB | ▼ 100.00% |