Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.51MB] [CPU: ▼18.21ms] Passed 4 tests
Analyzing server-side resources used by WP Deadlines
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.59 ▼1.23 |
Dashboard /wp-admin | 3.51 ▲0.21 | 44.09 ▼9.35 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.90 ▼2.00 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.57 | 36.02 ▼60.27 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.52 ▲0.39 |
Add New /wp-admin/post-new.php?post_type=tg_wp_deadline | 3.85 | 42.83 |
Deadlines /wp-admin/edit.php?post_type=tg_wp_deadline | 3.48 | 33.18 |
Server storage [IO: ▲6.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 601 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_wp_deadlines_widget |
can_compress_scripts |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_theysaidso_widget |
_tg_deadline_current_id |
Browser metrics Passed 4 tests
Checking browser requirements for WP Deadlines
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲235 | 14.76 ▲0.40 | 13.35 ▲11.61 | 46.10 ▲4.86 |
Dashboard /wp-admin | 2,256 ▲68 | 4.95 ▲0.07 | 113.13 ▲10.17 | 37.33 ▼3.47 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.25 ▲0.20 | 39.39 ▲4.28 | 35.45 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,567 ▲33 | 18.39 ▼4.88 | 641.57 ▼3.76 | 38.12 ▼18.59 |
Media Library /wp-admin/upload.php | 1,438 ▲56 | 4.35 ▲0.17 | 106.73 ▲11.98 | 47.75 ▲8.16 |
Add New /wp-admin/post-new.php?post_type=tg_wp_deadline | 1,305 | 1.53 | 6.82 | 28.48 |
Deadlines /wp-admin/edit.php?post_type=tg_wp_deadline | 1,103 | 2.22 | 36.65 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- widget_wp_deadlines_widget
- theysaidso_admin_options
- recovery_mode_email_last_sent
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=tg_wp_deadline
- > Compile error in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php+15
Declaration of CMB2_Type_Text_Datetime_Timestamp::render() must be compatible with CMB2_Type_Text::render($args = Array)
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
- 189× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Gd/Commands/DestroyCommand.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Imagick/Commands/InvertCommand.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-deadlines/lib/webdevstudios/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Imagick/Commands/ContrastCommand.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-deadlines/lib/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Imagick\\Commands\\ResizeCommand' not found in wp-content/plugins/wp-deadlines/lib/intervention/image/src/Intervention/Image/Imagick/Commands/HeightenCommand.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: deadline, clock, email-countdown, sales, timer...
wp-deadlines/wp-deadlines.php Passed 13 tests
"WP Deadlines" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Finally, A countdown timer to increase your sales and email conversions by creating a urgency to your buyer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin108,738 lines of code in 440 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 3 | 4 | 2 | 47,749 |
PO File | 120 | 13,782 | 17,882 | 31,544 |
PHP | 255 | 5,429 | 11,995 | 19,676 |
CSS | 15 | 1,138 | 1,136 | 5,101 |
Markdown | 10 | 543 | 0 | 1,419 |
JavaScript | 14 | 320 | 352 | 1,354 |
Sass | 14 | 277 | 26 | 1,293 |
JSON | 8 | 0 | 0 | 509 |
Bourne Shell | 1 | 23 | 11 | 93 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 245 | |
▷ Abstract classes | 18 | 7.35% |
▷ Concrete classes | 227 | 92.65% |
▷ Final classes | 2 | 0.88% |
Methods | 1,563 | |
▷ Static methods | 142 | 9.09% |
▷ Public methods | 1,335 | 85.41% |
▷ Protected methods | 155 | 9.92% |
▷ Private methods | 73 | 4.67% |
Functions | 89 | |
▷ Named functions | 62 | 69.66% |
▷ Anonymous functions | 27 | 30.34% |
Constants | 27 | |
▷ Global constants | 6 | 22.22% |
▷ Class constants | 21 | 77.78% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/webdevstudios/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/webdevstudios/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/webdevstudios/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
lib/webdevstudios/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/webdevstudios/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |