94% websms-ru

Code Review | WEBSMS.RU WordPress

WordPress plugin WEBSMS.RU WordPress scored 94% from 54 tests.

About plugin

  • Plugin page: websms-ru
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 5.8.1
  • First release: Jul 19, 2017
  • Latest release: Mar 10, 2021
  • Number of updates: 3
  • Update frequency: every 443.4 days
  • Top authors: elafonisy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 421 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼136.96ms] Passed 4 tests

An overview of server-side resources used by WEBSMS.RU WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2134.23 ▲2.34
Dashboard /wp-admin3.15 ▲0.1046.26 ▲1.13
Posts /wp-admin/edit.php3.24 ▲0.1343.11 ▼0.53
Add New Post /wp-admin/post-new.php5.52 ▲0.0891.92 ▼549.40
Media Library /wp-admin/upload.php3.09 ▲0.0932.82 ▲0.95
WEBSMS.RU /wp-admin/options-general.php?page=websms_ru_settings3.0632.56

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WEBSMS.RU WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.80 ▼0.227.59 ▼0.2443.60 ▼6.64
Dashboard /wp-admin2,972 ▲445.86 ▼0.23134.18 ▼29.13117.00 ▲0.11
Posts /wp-admin/edit.php2,744 ▲82.68 ▲0.0067.07 ▲1.8487.64 ▲3.37
Add New Post /wp-admin/post-new.php1,675 ▲6018.75 ▼2.49349.95 ▲79.88110.10 ▲2.04
Media Library /wp-admin/upload.php1,815 ▲85.00 ▼0.04145.04 ▼22.83114.40 ▼2.09
WEBSMS.RU /wp-admin/options-general.php?page=websms_ru_settings1,4222.0960.5991.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/websms-ru/websms_ru_wordpress.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wordpress, sms notification, websms, sms

websms-ru/websms_ru_wordpress.php 92% from 13 tests

This is the main PHP file of "WEBSMS.RU WordPress" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("websms-ru.php" instead of "websms_ru_wordpress.php")

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
There were no executable files found in this plugin474 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23350474

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity44.00
▷ Minimum class complexity32.00
▷ Maximum class complexity56.00
Average method complexity5.53
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo_websms.png7.99KB3.90KB▼ 51.14%