84% daily-motivation

Code Review | Daily Motivation

WordPress plugin Daily Motivation scored 84% from 54 tests.

About plugin

  • Plugin page: daily-motivation
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 19, 2017
  • Number of updates: 6
  • Update frequency: every 8.8 days
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 603 total downloads


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.02MB] [CPU: ▼5.99ms] Passed 4 tests

This is a short check of server-side resources used by Daily Motivation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.89 ▼1.71
Dashboard /wp-admin3.32 ▲0.0245.14 ▼17.55
Posts /wp-admin/edit.php3.37 ▲0.0245.20 ▲1.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.14 ▼5.77
Media Library /wp-admin/upload.php3.25 ▲0.0236.68 ▲1.40

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Daily Motivation: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.26 ▼1.134.50 ▲2.6139.86 ▼0.63
Dashboard /wp-admin2,209 ▲605.83 ▲0.1496.51 ▼0.6442.81 ▲1.86
Posts /wp-admin/edit.php2,076 ▼132.06 ▲0.0235.60 ▼6.9236.48 ▲2.88
Add New Post /wp-admin/post-new.php1,593 ▲22022.03 ▲4.39606.31 ▼169.6151.54 ▲3.64
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.06101.51 ▼2.0948.09 ▼0.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-motivation/daily-motivation.php:137

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (screenshot_1.png), #2 ()
You can look at the official readme.txt

daily-motivation/daily-motivation.php Passed 13 tests

The primary PHP file in "Daily Motivation" version 1.5 is used by WordPress to initiate all plugin functionality
86 characters long description:
This is not just a simple plugin, it will help you to motivate in your heart and work.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Screenshot_1.png1.89KB1.18KB▼ 37.57%