83% msgsmartly-by-digidopt

Code Review | MsgSmartly By Digidopt

WordPress plugin MsgSmartly By Digidopt scored83%from 54 tests.

About plugin

  • Plugin page: msgsmartly-by-dig...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2022
  • Latest release: Dec 17, 2022
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: digidopt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 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.01MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by MsgSmartly By Digidopt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.05 ▲1.72
Dashboard /wp-admin3.31 ▲0.0147.47 ▼0.41
Posts /wp-admin/edit.php3.36 ▲0.0147.98 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.98 ▼16.74
Media Library /wp-admin/upload.php3.23 ▲0.0134.52 ▲1.63
MsgSmartly by Digidopt /wp-admin/options-general.php?page=msgsmartly3.2030.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MsgSmartly By Digidopt
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.445.66 ▲3.8842.64 ▼3.21
Dashboard /wp-admin2,210 ▲225.78 ▼0.12112.33 ▲13.5242.60 ▲0.05
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0438.53 ▼2.7336.25 ▲0.37
Add New Post /wp-admin/post-new.php1,540 ▼223.26 ▲4.93627.38 ▲11.4860.49 ▲6.02
Media Library /wp-admin/upload.php1,392 ▲14.23 ▲0.0496.04 ▼0.4742.05 ▼0.40
MsgSmartly by Digidopt /wp-admin/options-general.php?page=msgsmartly1,1672.0324.5426.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 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/msgsmartly-by-digidopt/index.php:252

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

msgsmartly-by-digidopt/index.php 85% from 13 tests

The primary PHP file in "MsgSmartly By Digidopt" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("msgsmartly-by-digidopt.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected239 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11815227
CSS13011
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.74
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png60.94KB42.13KB▼ 30.87%