Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.11MB] [CPU: ▼39.27ms] Passed 4 tests
This is a short check of server-side resources used by Countdown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.59 | 17.39 ▼26.98 |
Dashboard /wp-admin | 2.90 ▼0.40 | 15.75 ▼31.87 |
Posts /wp-admin/edit.php | 2.91 ▼0.45 | 18.16 ▼29.40 |
Add New Post /wp-admin/post-new.php | 2.90 ▼2.98 | 17.70 ▼68.82 |
Media Library /wp-admin/upload.php | 2.90 ▼0.32 | 18.88 ▼14.04 |
Countdown Types /wp-admin/edit.php?post_type=mcdcountdown&page=mcdcountdown | 3.36 | 30.04 |
Add New /wp-admin/post-new.php?post_type=mcdcountdown | 3.42 | 41.94 |
All Countdowns /wp-admin/edit.php?post_type=mcdcountdown | 3.43 | 36.57 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Countdown
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.33 ▼0.97 | 1.69 ▼0.75 | 42.30 ▼9.20 |
Dashboard /wp-admin | 2,237 ▲52 | 4.86 ▼1.00 | 118.37 ▲1.21 | 43.62 ▲0.99 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.03 | 41.14 ▲4.92 | 35.52 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,560 ▲40 | 23.25 ▲0.06 | 653.16 ▲19.05 | 60.27 ▲9.13 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.19 ▲0.01 | 95.86 ▼2.11 | 41.31 ▼0.52 |
Countdown Types /wp-admin/edit.php?post_type=mcdcountdown&page=mcdcountdown | 826 | 1.79 | 26.63 | 26.10 |
Add New /wp-admin/post-new.php?post_type=mcdcountdown | 2,011 | 4.14 | 63.26 | 35.26 |
All Countdowns /wp-admin/edit.php?post_type=mcdcountdown | 1,081 | 2.38 | 31.84 | 28.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/countdowns/classes/RegisterPostType.php+46
Undefined index: post_type
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mcdcountdown
- > Notice in wp-content/plugins/countdowns/classes/countdown/Countdown.php+212
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=mcdcountdown
- > Notice in wp-content/plugins/countdowns/assets/views/cricleMainView.php+5
Undefined index: mcd_type
- > GET request to /wp-admin/edit.php?post_type=mcdcountdown
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/countdowns/classes/RegisterPostType.php+46
Undefined index: post_type
- > GET request to /wp-admin/edit.php?post_type=mcdcountdown
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/countdowns/classes/RegisterPostType.php+46
Undefined index: post
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(MCD_HELPERS_PATHScriptsIncluder.php): failed to open stream: No such file or directory in wp-content/plugins/countdowns/CountdownInit.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/countdowns/config/optionsConfig.php:8
- > PHP Fatal error
Uncaught Error: Class 'mcd\\Countdown' not found in wp-content/plugins/countdowns/classes/countdown/CircleCountdown.php:4
- > PHP Warning
Use of undefined constant MCD_HELPERS_PATH - assumed 'MCD_HELPERS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/countdowns/CountdownInit.php on line 32
- > PHP Fatal error
require_once(): Failed opening required 'MCD_HELPERS_PATHScriptsIncluder.php' (include_path='.:/usr/share/php') in wp-content/plugins/countdowns/CountdownInit.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function mcd\\add_action() in wp-content/plugins/countdowns/assets/css/Css.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function getOptionValue() on null in wp-content/plugins/countdowns/assets/views/cricleMainView.php:2
- > PHP Notice
Undefined variable: typeObj in wp-content/plugins/countdowns/assets/views/cricleMainView.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/countdowns/countdown.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/countdowns/config/config.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: countdown timer, timer, countdown
countdowns/countdown.php 92% from 13 tests
This is the main PHP file of "Countdown" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("countdowns.php" instead of "countdown.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,391 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 6 | 22 | 6,889 |
JavaScript | 3 | 121 | 80 | 786 |
PHP | 17 | 185 | 74 | 716 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 19 | 22.89% |
▷ Public methods | 76 | 91.57% |
▷ Protected methods | 1 | 1.20% |
▷ Private methods | 6 | 7.23% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Cricle.png | 9.99KB | 4.32KB | ▼ 56.80% |