Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.01ms] Passed 4 tests
This is a short check of server-side resources used by Default Post Date
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.92 ▼3.19 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.09 ▼4.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.75 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.37 ▲6.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.31 ▲2.07 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
default_post_date_version |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Default Post Date: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲36 | 13.19 ▼0.10 | 1.95 ▲0.21 | 40.21 ▼2.81 |
Dashboard /wp-admin | 2,209 ▼0 | 5.90 ▼0.00 | 107.08 ▼2.94 | 41.17 ▼0.44 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.01 | 39.25 ▲5.12 | 35.04 ▲4.16 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.35 ▼0.02 | 669.16 ▼0.06 | 54.23 ▲1.05 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.07 | 96.02 ▼2.85 | 51.65 ▲1.95 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: posts, publish, post, date, bulk
default-post-date/default-post-date.php Passed 13 tests
"Default Post Date" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Define an individual default post date that is to be used when adding a new post.
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
Success! There were no dangerous files found in this plugin635 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 214 | 439 | 598 |
JavaScript | 2 | 4 | 1 | 21 |
PO File | 1 | 3 | 6 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 46 | 93.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.12% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin