83% mobikob

Code Review | Sahratelekom

WordPress plugin Sahratelekom scored83%from 54 tests.

About plugin

  • Plugin page: mobikob
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2021
  • Latest release: Dec 27, 2021
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: mobikob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /612 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▲1.38ms] Passed 4 tests

This is a short check of server-side resources used by Sahratelekom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3545.57 ▲5.83
Dashboard /wp-admin3.68 ▲0.3849.51 ▲2.34
Posts /wp-admin/edit.php3.78 ▲0.4347.86 ▲0.57
Add New Post /wp-admin/post-new.php6.28 ▲0.3991.77 ▼2.04
Media Library /wp-admin/upload.php3.60 ▲0.3741.69 ▲4.66

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Sahratelekom
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲7113.57 ▼0.761.74 ▼0.4045.94 ▼0.68
Dashboard /wp-admin2,222 ▲315.24 ▲0.32101.22 ▲1.3774.14 ▲30.51
Posts /wp-admin/edit.php2,117 ▲282.54 ▲0.5434.36 ▼10.2333.40 ▼3.58
Add New Post /wp-admin/post-new.php1,693 ▲15922.75 ▼0.38676.26 ▼25.1031.49 ▼25.65
Media Library /wp-admin/upload.php1,410 ▲224.51 ▲0.34102.02 ▲5.5072.33 ▲27.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mobikob/pages/settings.php
    • > /wp-content/plugins/mobikob/pages/contactform7.php
    • > /wp-content/plugins/mobikob/pages/voip.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (MmobiKoB kullanıcı adı ve şifresi girilip hesap doğrulanır. Başlık seçilir, modül durumu açık hale getirilir ve değişikler kaydedilir.), #2 (Otomatik gönderilmek istenen sms in özelligi açilarak mesaj şablonu belirlenir. Sayfa altında bulunan kaydet butonu ile kaydedilir. Hesap bilgilerinizin doğru olması, sms başlığının seçili olması ve eklenti durumunun açık olması halinde sms ler duruma ve kişiye özel olarak gönderilecektir.), #3 (İstenilen bir numaraya özel sms gönderilebilir.), #4 (Siteye kayıtlı ve numarası tanımlı müşterilere toplu şekilde sms gönderilebilir.), #5 (Toplu sms gönderirken kişilere özel sms göndermek icin değişkenler kullanılabilir. Bu değişkenler sayesinde mesaj içeriğinde örneğin [musteri_adi] yazdığınızda seçtiğiniz kullanıcının adı ile değişecektir.), #6 (Gönderilen msjın bir özetini ve hangi numaralara gönderildiği ekranı gelecektir. Gönderilen sms lerin durumunu sahratelekom panelinden takip edebilirsiniz.)
The official readme.txt might help

mobikob/index.php 85% from 13 tests

The principal PHP file in "Sahratelekom" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 585 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mobikob.php" instead of "index.php")

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 plugin28,430 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
CSS9542810,408
JavaScript91,8371,1148,030
PHP84721343,507
SVG2002,959
Sass1434341,768
LESS1434441,758

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity22.33
▷ Minimum class complexity14.00
▷ Maximum class complexity28.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/image/logo.png263.50KB91.90KB▼ 65.12%
lib/image/sahraicon.png0.80KB0.74KB▼ 8.27%