83% leductoan-toucan-sms

Code Review | TOUCAN SMS

WordPress plugin TOUCAN SMS scored83%from 54 tests.

About plugin

  • Plugin page: leductoan-toucan-sms
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Jul 29, 2018
  • Latest release: Jul 29, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: leductoan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.15ms] Passed 4 tests

Analyzing server-side resources used by TOUCAN SMS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.78 ▲1.05
Dashboard /wp-admin3.46 ▲0.1555.61 ▼1.66
Posts /wp-admin/edit.php3.57 ▲0.2148.39 ▼2.66
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.02 ▼13.32
Media Library /wp-admin/upload.php3.38 ▲0.1538.85 ▲2.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for TOUCAN SMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.181.85 ▲0.2944.22 ▲3.74
Dashboard /wp-admin2,198 ▲185.63 ▼0.0489.33 ▼8.6739.41 ▼8.07
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0635.17 ▼5.0934.02 ▼1.94
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▼0.01695.00 ▼43.8851.85 ▼12.37
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0796.72 ▼19.6542.05 ▼6.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/leductoan-toucan-sms/toucan-sms.php

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: The official readme.txt might help

leductoan-toucan-sms/toucan-sms.php 77% from 13 tests

The main PHP file in "TOUCAN SMS" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 221 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("leductoan-toucan-sms.php" instead of "toucan-sms.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin869 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16926755
CSS10081
JavaScript10033

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity94.00
▷ Minimum class complexity2.00
▷ Maximum class complexity186.00
Average method complexity7.64
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods2589.29%
▷ Protected methods00.00%
▷ Private methods310.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png55.84KB18.28KB▼ 67.26%
screenshot-1.png45.41KB26.23KB▼ 42.23%
screenshot-3.png8.07KB3.84KB▼ 52.41%