Benchmarks
Plugin footprint 83% 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: ▲0.09MB] [CPU: ▼3.80ms] Passed 4 tests
Analyzing server-side resources used by Countdown, Date, Time and Promoter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.04 ▼5.25 |
Dashboard /wp-admin | 3.41 ▲0.10 | 48.80 ▼1.56 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.60 ▲5.00 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.12 ▼11.43 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.93 ▲3.06 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Countdown, Date, Time and Promoter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.56 ▼0.82 | 1.70 ▼0.34 | 42.93 ▲0.66 |
Dashboard /wp-admin | 2,222 ▲31 | 5.87 ▲0.97 | 98.04 ▼3.16 | 39.37 ▼2.63 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.03 ▼0.01 | 39.59 ▼9.09 | 37.21 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,546 ▲33 | 23.16 ▲5.59 | 665.46 ▲68.22 | 59.05 ▲6.11 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.17 ▼0.13 | 93.47 ▼6.26 | 43.44 ▲1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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 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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant CFC_PATH - assumed 'CFC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/countdown-date-time-and-promoter/app/index.php on line 11
- > PHP Fatal error
require(): Failed opening required 'CFC_PATH/css/main.css' (include_path='.:/usr/share/php') in wp-content/plugins/countdown-date-time-and-promoter/app/index.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/countdown-date-time-and-promoter/customized_countdown_date_time_promoter.php:16
- > PHP Warning
require(CFC_PATH/css/main.css): failed to open stream: No such file or directory in wp-content/plugins/countdown-date-time-and-promoter/app/index.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Countdown, Date, Time and Promoter plugin printscreens), #2 (Countdown, Date, Time and Promoter plugin settings page)
countdown-date-time-and-promoter/customized_countdown_date_time_promoter.php 85% from 13 tests
The principal PHP file in "Countdown, Date, Time and Promoter" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("countdown-date-time-and-promoter.php" instead of "customized_countdown_date_time_promoter.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected569 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 53 | 27 | 443 |
JavaScript | 1 | 27 | 7 | 68 |
CSS | 1 | 7 | 0 | 58 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected