90% zycoonapps-login-sms-alert

Code Review | ZycoonApps Login SMS Alert

WordPress plugin ZycoonApps Login SMS Alert scored90%from 54 tests.

About plugin

  • Plugin page: zycoonapps-login-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Jul 23, 2022
  • Number of updates: 3
  • Update frequency: every 75.7 days
  • Top authors: zycoonapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.04ms] Passed 4 tests

An overview of server-side resources used by ZycoonApps Login SMS Alert
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.66 ▼9.96
Dashboard /wp-admin3.35 ▲0.0050.51 ▼22.90
Posts /wp-admin/edit.php3.40 ▲0.0452.54 ▼0.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.17 ▼6.33
Media Library /wp-admin/upload.php3.27 ▲0.0436.77 ▼0.96
Login SMS Alert /wp-admin/options-general.php?page=zapps-login-sms-alert3.2434.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ZycoonApps Login SMS Alert
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.471.66 ▼0.0544.92 ▲0.25
Dashboard /wp-admin2,202 ▲285.66 ▲0.1286.59 ▼14.7441.05 ▼6.82
Posts /wp-admin/edit.php2,104 ▲71.99 ▲0.0137.94 ▲1.1937.97 ▼0.58
Add New Post /wp-admin/post-new.php1,531 ▲323.24 ▲0.23676.53 ▼20.6051.69 ▼40.84
Media Library /wp-admin/upload.php1,398 ▼54.21 ▲0.0998.46 ▼13.1544.65 ▼2.69
Login SMS Alert /wp-admin/options-general.php?page=zapps-login-sms-alert8682.1521.5129.46

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: sms notification, login sms, sms alert, admin login alert, sms

zycoonapps-login-sms-alert/zycoonapps-login-sms-alert.php Passed 13 tests

The primary PHP file in "ZycoonApps Login SMS Alert" version 1.0.1 is used by WordPress to initiate all plugin functionality
137 characters long description:
Want an alert on successful Admin Login? ZycoonApps Login SMS Alert can alert you via SMS of the login incident including the IP address.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21714201

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions10
▷ Named functions10100.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 files were detected