Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.46ms] Passed 4 tests
Analyzing server-side resources used by Post Deadlines
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.92 ▼0.94 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.80 ▼12.33 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 54.20 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.34 ▼11.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.88 ▼4.94 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Deadlines
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.64 ▼0.71 | 11.33 ▲9.56 | 41.21 ▼6.84 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.10 | 82.20 ▼23.09 | 39.88 ▼4.00 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.09 ▲0.08 | 47.62 ▲10.84 | 40.23 ▲4.01 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,707 | 26.10 ▲2.56 | 860.93 ▲142.78 | 52.70 ▼11.21 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.00 | 100.68 ▲4.73 | 46.43 ▲1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/post-deadlines/views/shortcode-list-upcoming-deadlines.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: posts in wp-content/plugins/post-deadlines/views/shortcode-list-upcoming-deadlines.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/post-deadlines/views/shortcode-list-upcoming-deadlines.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
4 plugin tags: deadline, o2, p2, deadlines
post-deadlines/post-deadlines.php 92% from 13 tests
The entry point to "Post Deadlines" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin904 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 24 | 34 | 639 |
PHP | 3 | 57 | 112 | 237 |
JavaScript | 1 | 8 | 7 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |