89% new-post-sms-notifications

Code Review | New Post SMS Notifications

WordPress plugin New Post SMS Notifications scored89%from 54 tests.

About plugin

  • Plugin page: new-post-sms-noti...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2020
  • Latest release: Feb 28, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: mbomnda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /446 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.08ms] Passed 4 tests

This is a short check of server-side resources used by New Post SMS Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.83 ▲1.17
Dashboard /wp-admin3.33 ▲0.0355.12 ▲0.23
Posts /wp-admin/edit.php3.38 ▲0.0251.84 ▲0.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.28 ▼14.30
Media Library /wp-admin/upload.php3.25 ▲0.0241.48 ▲1.12

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for New Post SMS Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.26 ▼0.341.76 ▲0.1145.05 ▼2.29
Dashboard /wp-admin2,208 ▲345.63 ▲0.1196.54 ▲5.4941.41 ▼3.87
Posts /wp-admin/edit.php2,116 ▲192.00 ▼0.0334.15 ▼2.0736.24 ▼7.24
Add New Post /wp-admin/post-new.php1,539 ▲1323.37 ▲0.37671.80 ▲5.0970.51 ▲3.94
Media Library /wp-admin/upload.php1,413 ▲104.19 ▼0.0998.45 ▼12.3145.54 ▼5.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: new post new post sms plugins india, new post sms api plugin, promotional bulk sms, new post plugins india, bulk sms india...

new-post-sms-notifications/new-post-sms-notifications.php 85% from 13 tests

The principal PHP file in "New Post SMS Notifications" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
There were no executable files found in this plugin98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1552398

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin