Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.57ms] Passed 4 tests
Analyzing server-side resources used by DailyBrief
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 46.17 ▲6.89 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.03 ▲1.26 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.97 ▼1.16 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.56 ▼19.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.93 ▲0.66 |
DailyBrief /wp-admin/options-general.php?page=dailybrief | 3.12 | 24.89 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
category_children |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
DailyBrief: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.78 ▼0.61 | 5.54 ▲3.76 | 46.32 ▲7.87 |
Dashboard /wp-admin | 2,220 ▲35 | 5.92 ▲0.03 | 96.42 ▼16.05 | 37.88 ▼8.18 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.25 ▲0.20 | 38.79 ▼1.80 | 34.95 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.57 ▲0.40 | 668.17 ▲61.95 | 58.17 ▲2.26 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.37 ▲0.07 | 96.52 ▼4.53 | 42.75 ▼1.04 |
DailyBrief /wp-admin/options-general.php?page=dailybrief | 896 | 1.77 | 25.72 | 78.59 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- category_children
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=dailybrief
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Dailybrief_Admin::select2jquery_inline() should not be called statically
- > GET request to /wp-admin/options-general.php?page=dailybrief
- > User deprecated in wp-includes/functions.php+5737
Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dailybrief/public/partials/dailybrief-public-display.php
- > /wp-content/plugins/dailybrief/includes/class-dailybrief-cli-command.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Dailybrief' not found in wp-content/plugins/dailybrief/admin/partials/dailybrief-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
7 plugin tags: contentgeneration, monetization, generation, blockchain, hive...
dailybrief/dailybrief.php Passed 13 tests
Analyzing the main PHP file in "DailyBrief" version 1.1.05
98 characters long description:
WordPress plugin with WP-CLI support to generate a daily brief of a previous day or periods posts.
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 plugin2,237 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 298 | 1,518 | 1,743 |
Markdown | 3 | 136 | 0 | 346 |
CSS | 2 | 11 | 11 | 142 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 3 | 2.29% |
▷ Public methods | 123 | 93.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/images/white_icon_dailybrief.png | 1.49KB | 0.96KB | ▼ 35.88% |
admin/partials/images/steemit.png | 0.86KB | 0.77KB | ▼ 11.01% |
admin/partials/images/flag.png | 0.32KB | 0.29KB | ▼ 8.92% |