73% dailybrief

Code Review | DailyBrief

WordPress plugin DailyBrief scored73%from 54 tests.

About plugin

  • Plugin page: dailybrief
  • Plugin version: 1.1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Jun 2, 2021
  • Number of updates: 18
  • Update frequency: every 46.1 days
  • Top authors: dfroberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /859 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.17 ▲6.89
Dashboard /wp-admin3.34 ▲0.0448.03 ▲1.26
Posts /wp-admin/edit.php3.39 ▲0.0445.97 ▼1.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.56 ▼19.02
Media Library /wp-admin/upload.php3.26 ▲0.0335.93 ▲0.66
DailyBrief /wp-admin/options-general.php?page=dailybrief3.1224.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.78 ▼0.615.54 ▲3.7646.32 ▲7.87
Dashboard /wp-admin2,220 ▲355.92 ▲0.0396.42 ▼16.0537.88 ▼8.18
Posts /wp-admin/edit.php2,106 ▲172.25 ▲0.2038.79 ▼1.8034.95 ▼0.60
Add New Post /wp-admin/post-new.php1,527 ▼623.57 ▲0.40668.17 ▲61.9558.17 ▲2.26
Media Library /wp-admin/upload.php1,405 ▲144.37 ▲0.0796.52 ▼4.5342.75 ▼1.04
DailyBrief /wp-admin/options-general.php?page=dailybrief8961.7725.7278.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP142981,5181,743
Markdown31360346
CSS21111142
JavaScript24546

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 code0.37
Average class complexity19.44
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods131
▷ Static methods32.29%
▷ Public methods12393.89%
▷ Protected methods00.00%
▷ Private methods86.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
admin/partials/images/white_icon_dailybrief.png1.49KB0.96KB▼ 35.88%
admin/partials/images/steemit.png0.86KB0.77KB▼ 11.01%
admin/partials/images/flag.png0.32KB0.29KB▼ 8.92%