Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.88ms] Passed 4 tests
A check of server-side resources used by What The Cron
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.96 ▼3.33 |
Dashboard /wp-admin | 3.54 ▲0.24 | 53.34 ▼1.92 |
Posts /wp-admin/edit.php | 3.60 ▲0.23 | 54.68 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 99.21 ▼7.56 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 43.47 ▲5.00 |
What The Cron /wp-admin/tools.php?page=what-the-cron | 5.78 | 47.77 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 977 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for What The Cron
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.10 | 1.60 ▼0.39 | 41.32 ▼3.20 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.04 | 90.55 ▼1.97 | 43.34 ▲2.81 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.10 | 35.88 ▼1.69 | 36.68 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.28 ▲0.16 | 614.13 ▼80.85 | 52.83 ▼21.58 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.11 ▼0.03 | 102.04 ▼12.11 | 41.75 ▼11.22 |
What The Cron /wp-admin/tools.php?page=what-the-cron | 1,102 | 2.17 | 24.82 | 33.32 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/what-the-cron/vendor/symfony/translation/Resources/bin/translation-status.php
- 66× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\ArrayLoader' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/Loader/FileLoader.php:21
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/what-the-cron/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/Exception/InvalidResourceException.php:19
- > PHP Fatal error
Trait 'Carbon\\Traits\\Mixin' not found in wp-content/plugins/what-the-cron/vendor/nesbot/carbon/src/Carbon/Traits/Macro.php on line 31
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/IdentityTranslator.php:23
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/Command/XliffLintCommand.php:30
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Compiler\\AbstractRecursivePass' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php:23
- > PHP Warning
Class 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/what-the-cron/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Extractor\\ExtractorInterface' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/Extractor/ChainExtractor.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor' not found in wp-content/plugins/what-the-cron/vendor/symfony/translation/Extractor/PhpExtractor.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: cron, admin, plugin, wp-cron
what-the-cron/what-the-cron.php Passed 13 tests
"What The Cron" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
30 characters long description:
What is the deal with my cron?
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/what-the-cron/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 748 | 5,411 | 22,456 | 30,054 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 7 | 0 | 0 | 638 |
Markdown | 7 | 147 | 0 | 392 |
XML | 1 | 0 | 0 | 44 |
YAML | 2 | 0 | 1 | 8 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 15 | |
Traits | 20 | |
Classes | 74 | |
▷ Abstract classes | 4 | 5.41% |
▷ Concrete classes | 70 | 94.59% |
▷ Final classes | 1 | 1.43% |
Methods | 1,313 | |
▷ Static methods | 302 | 23.00% |
▷ Public methods | 1,151 | 87.66% |
▷ Protected methods | 94 | 7.16% |
▷ Private methods | 68 | 5.18% |
Functions | 254 | |
▷ Named functions | 51 | 20.08% |
▷ Anonymous functions | 203 | 79.92% |
Constants | 73 | |
▷ Global constants | 3 | 4.11% |
▷ Class constants | 70 | 95.89% |
▷ Public constants | 70 | 100.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 were not PNG files found in your plugin