Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/countdown-flipclock/FlipClock.php+42
Undefined variable: allow_url_include
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.30ms] Passed 4 tests
A check of server-side resources used by CountDown FlipClock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.98 ▼36.01 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.80 ▼59.67 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.75 ▼47.42 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.44 ▼88.01 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.65 ▼38.10 |
Add new FlipClock /wp-admin/post-new.php?post_type=cdfc | 2.05 | 7.08 |
Added FlipClocks /wp-admin/edit.php?post_type=cdfc | 2.05 | 6.04 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
CountDown FlipClock: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲152 | 14.46 ▼0.31 | 5.60 ▲3.46 | 42.46 ▼11.07 |
Dashboard /wp-admin | 2,272 ▲69 | 5.31 ▼0.52 | 114.65 ▼25.00 | 40.48 ▼12.19 |
Posts /wp-admin/edit.php | 2,163 ▲74 | 2.41 ▲0.43 | 45.48 ▲5.14 | 49.46 ▲12.68 |
Add New Post /wp-admin/post-new.php | 1,569 ▲32 | 23.50 ▲0.31 | 658.36 ▼102.83 | 36.71 ▼33.14 |
Media Library /wp-admin/upload.php | 1,457 ▲72 | 4.70 ▲0.56 | 101.52 ▼27.69 | 45.46 ▼12.20 |
Add new FlipClock /wp-admin/post-new.php?post_type=cdfc | 1,994 | 3.03 | 103.16 | 81.85 |
Added FlipClocks /wp-admin/edit.php?post_type=cdfc | 1,131 | 2.57 | 44.38 | 39.57 |
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
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/countdown-flipclock/FlipClock.php+42
Undefined variable: allow_url_include
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cdfc
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/countdown-flipclock/FlipClock.php+42
Undefined variable: allow_url_include
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-flipclock/FlipTinymce/FlipTinyMCE.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-flipclock/FlipIncludes/FlipMetaboxes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-flipclock/FlipIncludes/FlipFiles.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/countdown-flipclock/FlipIncludes/FlipMisc.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/countdown-flipclock/FlipIncludes/FlipShortcode.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-flipclock/FlipIncludes/FlipCustomPost.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: 3d effect, countdown timer, countdown, animation, 3d...
countdown-flipclock/FlipClock.php 85% from 13 tests
"CountDown FlipClock" version 2.7.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("countdown-flipclock.php" instead of "FlipClock.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin371 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 71 | 78 | 363 |
CSS | 4 | 2 | 12 | 4 |
JavaScript | 4 | 1 | 8 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
FlipTinymce/mce.png | 0.67KB | 0.73KB | 0.00% |