Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.61ms] Passed 4 tests
An overview of server-side resources used by Dispatch Countdown
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.53 ▼4.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.53 ▼2.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.84 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.78 ▼13.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.28 ▼1.88 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dispatch Countdown
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.20 | 1.71 ▼0.14 | 41.57 ▼3.24 |
Dashboard /wp-admin | 2,209 ▲24 | 5.90 ▼0.13 | 99.39 ▼3.33 | 41.01 ▼4.41 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.00 | 38.34 ▼6.50 | 36.21 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.76 ▼4.68 | 653.62 ▼16.93 | 59.94 ▼19.24 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.02 | 91.68 ▼7.56 | 41.31 ▼3.25 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dispatch-countdown/vendor/khill/php-duration/test/DurationTest.php:5
- > PHP Fatal error
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 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: dispatch, countdown, woocommerce
dispatch-countdown/dispatch-countdown.php 92% from 13 tests
"Dispatch Countdown" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,683 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 338 | 739 | 1,195 |
XML | 2 | 35 | 60 | 120 |
JSON | 4 | 0 | 0 | 119 |
JavaScript | 3 | 9 | 2 | 76 |
PO File | 1 | 24 | 34 | 68 |
Markdown | 1 | 18 | 0 | 59 |
YAML | 2 | 14 | 0 | 42 |
CSS | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 4 | 5.00% |
▷ Public methods | 71 | 88.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 11.25% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin