84% smsfly

Code Review | SMS-Fly для Wordpress

WordPress plugin SMS-Fly для Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: smsfly
  • Plugin version: 2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Oct 12, 2023
  • Number of updates: 18
  • Update frequency: every 133.3 days
  • Top authors: smsfly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,118 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.72ms] Passed 4 tests

Analyzing server-side resources used by SMS-Fly для Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.85 ▲1.02
Dashboard /wp-admin3.56 ▲0.2651.09 ▼1.21
Posts /wp-admin/edit.php3.67 ▲0.3247.80 ▼8.76
Add New Post /wp-admin/post-new.php6.14 ▲0.2688.62 ▼13.92
Media Library /wp-admin/upload.php3.48 ▲0.2640.83 ▲2.52
SMS-fly & Woocommerce /wp-admin/admin.php?page=SMSFly_woo3.4536.58
SMS-fly & Contact Form 7 /wp-admin/admin.php?page=SMSFly_cf73.4533.81
Send sms /wp-admin/admin.php?page=smsfly_sms3.45251.62
Gateway setup /wp-admin/admin.php?page=SMSFly_settings3.45224.88
Notifications settings /wp-admin/admin.php?page=SMSFly_notify3.45223.25

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SMS-Fly для Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.37 ▼0.001.83 ▲0.2244.33 ▲5.83
Dashboard /wp-admin2,234 ▲575.58 ▼0.0487.26 ▲1.4142.89 ▼1.37
Posts /wp-admin/edit.php2,139 ▲391.97 ▼0.0436.50 ▼2.0237.06 ▼0.69
Add New Post /wp-admin/post-new.php1,576 ▲3622.90 ▼0.34642.61 ▲13.0350.80 ▼8.19
Media Library /wp-admin/upload.php1,439 ▲364.23 ▲0.0499.02 ▼1.9744.09 ▼1.34
SMS-fly & Woocommerce /wp-admin/admin.php?page=SMSFly_woo8022.1826.0228.85
SMS-fly & Contact Form 7 /wp-admin/admin.php?page=SMSFly_cf78022.0226.1928.28
Send sms /wp-admin/admin.php?page=smsfly_sms8972.0725.0728.65
Gateway setup /wp-admin/admin.php?page=SMSFly_settings8272.0522.3923.75
Notifications settings /wp-admin/admin.php?page=SMSFly_notify1,0182.2126.4526.32

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smsfly/includes/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smsfly/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/smsfly/smsfly.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: viber, ukraine, smsfly, sms-fly, sms

smsfly/smsfly.php Passed 13 tests

This is the main PHP file of "SMS-Fly для Wordpress" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
SMS and Viber messages using the SMS-fly service

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,466 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10118601,020
PO File221014446

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods440.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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