83% beem-sms

Code Review | Beem Sms

WordPress plugin Beem Sms scored83%from 54 tests.

About plugin

  • Plugin page: beem-sms
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2022
  • Latest release: Nov 8, 2022
  • Number of updates: 7
  • Update frequency: every 11.0 days
  • Top authors: beemafrica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.46ms] Passed 4 tests

This is a short check of server-side resources used by Beem Sms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.08 ▲2.36
Dashboard /wp-admin3.38 ▲0.0447.89 ▼14.27
Posts /wp-admin/edit.php3.49 ▲0.1450.08 ▼6.36
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.26 ▼15.57
Media Library /wp-admin/upload.php3.30 ▲0.0841.59 ▲3.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Beem Sms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.38 ▲0.221.77 ▲0.2540.36 ▼1.02
Dashboard /wp-admin2,217 ▲375.83 ▲0.1682.98 ▼5.2174.54 ▲34.26
Posts /wp-admin/edit.php2,122 ▲252.14 ▲0.1136.17 ▼1.8929.71 ▼1.53
Add New Post /wp-admin/post-new.php1,697 ▲16922.84 ▼0.37778.18 ▲150.8155.82 ▼0.33
Media Library /wp-admin/upload.php1,482 ▲884.38 ▲0.15101.45 ▲3.1767.04 ▲21.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/beem-sms/admin/partials/beem-sms-admin-display.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings), #2 (Notifications), #3 (Order Status), #4 (New Order)
You can take inspiration from this readme.txt

beem-sms/beem-sms.php 92% from 13 tests

"Beem Sms" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected556 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11150490488
CSS29764
JavaScript24334

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.57MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/beem.png18.90KB6.44KB▼ 65.91%
assets/images/broadcast.png90.90KB31.91KB▼ 64.90%
assets/images/notifications.png47.92KB16.39KB▼ 65.79%
assets/images/settings.png48.50KB17.46KB▼ 64.00%
assets/images/icon-128x128.png2.76KB1.43KB▼ 48.05%