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.81MB] [CPU: ▲3.95ms] Passed 4 tests
This is a short check of server-side resources used by Sunny
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 36.96 ▼3.04 |
Dashboard /wp-admin | 4.22 ▲0.92 | 51.08 ▲5.98 |
Posts /wp-admin/edit.php | 4.27 ▲0.92 | 54.68 ▲6.35 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.09 | 99.36 ▲8.03 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 43.21 ▲6.52 |
Admin Bar /wp-admin/admin.php?page=sunny-admin-bar | 4.16 | 44.15 |
Sunny /wp-admin/admin.php?page=sunny-cloudflare | 4.18 | 40.42 |
Debuggers /wp-admin/admin.php?page=sunny-debuggers | 4.15 | 41.03 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 180 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
sunny_review_me_notice_last_enqueue |
widget_recent-posts |
sunny_notifier_admin_notices |
sunny_donate_me_notice_last_enqueue |
sunny_hire_me_notice_last_enqueue |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sunny
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,657 ▼78 | 13.56 ▼0.81 | 1.24 ▼0.83 | 39.58 ▼7.46 |
Dashboard /wp-admin | 2,231 ▲43 | 5.83 ▼0.09 | 99.53 ▼12.11 | 36.36 ▼8.70 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.05 ▲0.03 | 34.52 ▼7.57 | 33.27 ▼6.17 |
Add New Post /wp-admin/post-new.php | 1,567 ▲20 | 18.66 ▲0.56 | 600.59 ▼2.17 | 63.07 ▲10.73 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.20 ▼0.04 | 99.55 ▼0.75 | 45.05 ▲1.68 |
Admin Bar /wp-admin/admin.php?page=sunny-admin-bar | 987 | 2.29 | 39.72 | 37.03 |
Sunny /wp-admin/admin.php?page=sunny-cloudflare | 1,009 | 2.26 | 44.92 | 32.08 |
Debuggers /wp-admin/admin.php?page=sunny-debuggers | 1,249 | 2.35 | 53.18 | 34.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 101× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Sunny\\Vendor\\TypistTech\\WPBetterSettings\\Decorators\\DecoratorAwareInterface' not found in wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/Section.php:29
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Sunny\\Vendor\\TypistTech\\WPBetterSettings\\OptionStores\\StrategyInterface' not found in wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/OptionStores/ConstantStrategy.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function TypistTech\\Sunny\\Vendor\\TypistTech\\WPBetterSettings\\esc_attr() in wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/partials/fields/input.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function TypistTech\\Sunny\\Vendor\\TypistTech\\WPBetterSettings\\do_action() in wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/partials/section.php:23
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Sunny\\Targets\\Strategies\\StrategyInterface' not found in wp-content/plugins/sunny/src/Targets/Strategies/Homepage.php:24
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Sunny\\LoadableInterface' not found in wp-content/plugins/sunny/src/Debuggers/AbstractDebugger.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sunny/src/Ads/partials/newsletter/newsletter.php:49
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Sunny\\Vendor\\TypistTech\\WPBetterSettings\\Fields\\FieldInterface' not found in wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/Fields/AbstractField.php:26
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Sunny\\Vendor\\TypistTech\\WPBetterSettings\\OptionStoreInterface' not found in wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/OptionStore.php:29
- > PHP Fatal error
Uncaught Error: Class 'TypistTech\\Sunny\\Vendor\\League\\Container\\Definition\\AbstractDefinition' not found in wp-content/plugins/sunny/vendor/league/container/src/Definition/CallableDefinition.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in sunny/assets to your readme.txt
sunny/sunny.php Passed 13 tests
The main PHP file in "Sunny" ver. 2.5.0 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Automatically purge CloudFlare cache, including cache everything rules.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,524 lines of code in 170 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 153 | 1,411 | 4,986 | 5,209 |
JSON | 8 | 0 | 0 | 880 |
JavaScript | 5 | 26 | 70 | 201 |
CSS | 2 | 29 | 29 | 182 |
Bourne Again Shell | 1 | 8 | 0 | 33 |
Markdown | 1 | 2 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 31 | |
Traits | 6 | |
Classes | 99 | |
▷ Abstract classes | 9 | 9.09% |
▷ Concrete classes | 90 | 90.91% |
▷ Final classes | 69 | 76.67% |
Methods | 435 | |
▷ Static methods | 24 | 5.52% |
▷ Public methods | 362 | 83.22% |
▷ Protected methods | 34 | 7.82% |
▷ Private methods | 39 | 8.97% |
Functions | 33 | |
▷ Named functions | 2 | 6.06% |
▷ Anonymous functions | 31 | 93.94% |
Constants | 33 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 33 | 100.00% |
▷ Public constants | 33 | 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
There are no PNG files in this plugin