Benchmarks
Plugin footprint Passed 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.03MB] [CPU: ▼141.34ms] Passed 4 tests
This is a short check of server-side resources used by Form Countdown for GiveWP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 33.43 ▼0.23 |
Dashboard /wp-admin | 3.09 ▲0.04 | 43.38 ▲0.98 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 47.51 ▲5.01 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 86.27 ▼565.14 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.83 ▼0.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Form Countdown for GiveWP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 16.19 ▲0.58 | 8.73 ▼1.97 | 46.14 ▼0.25 |
Dashboard /wp-admin | 2,979 ▲48 | 6.12 ▼0.02 | 133.43 ▼10.91 | 115.64 ▼3.97 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.72 ▲0.00 | 59.44 ▼0.78 | 95.29 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,880 ▲210 | 19.20 ▲0.08 | 386.75 ▲9.46 | 108.43 ▼4.68 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.04 ▲0.01 | 148.81 ▲1.77 | 120.12 ▲1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-countdown-for-givewp/includes/actions.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/form-countdown-for-givewp/includes/admin/class-form-metabox-setting.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/form-countdown-for-givewp/give-form-countdown.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/form-countdown-for-givewp/template/countdown_clock_1.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The Form Countdown Clock on a donation form.), #2 (The Form Countdown Settings.)
- Screenshots: No descriptions were found for these screenshots #0, #0 in form-countdown-for-givewp/assets to your readme.txt
form-countdown-for-givewp/give-form-countdown.php 85% from 13 tests
This is the main PHP file of "Form Countdown for GiveWP" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("form-countdown-for-givewp.php" instead of "give-form-countdown.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin550 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 151 | 348 | 477 |
JavaScript | 2 | 11 | 15 | 61 |
CSS | 2 | 0 | 0 | 8 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin