83% sms-media4u-login

Code Review | SMS Media4u Login

WordPress plugin SMS Media4u Login scored 83% from 54 tests.

About plugin

  • Plugin page: sms-media4u-login
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Nov 6, 2022
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: Hiroaki Miyashita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 202 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
Install script ran successfully

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

Analyzing server-side resources used by SMS Media4u Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.58 ▼6.84
Dashboard /wp-admin3.38 ▲0.0749.07 ▲0.49
Posts /wp-admin/edit.php3.43 ▲0.0745.25 ▼4.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.86 ▼27.19
Media Library /wp-admin/upload.php3.30 ▲0.0735.93 ▼1.52
SMS Media4u Login /wp-admin/options-general.php?page=sms_media4u_login3.2732.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SMS Media4u Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5313.21 ▼1.474.82 ▲2.7841.93 ▼7.17
Dashboard /wp-admin2,216 ▲255.87 ▼0.03116.32 ▲11.8046.59 ▲6.17
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0237.75 ▲1.0932.01 ▼0.90
Add New Post /wp-admin/post-new.php1,542 ▲923.07 ▼0.01588.77 ▼43.0966.47 ▲12.08
Media Library /wp-admin/upload.php1,398 ▲104.21 ▼0.0198.50 ▼5.1143.55 ▼0.68
SMS Media4u Login /wp-admin/options-general.php?page=sms_media4u_login8322.0624.4024.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • 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
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-media4u-login/sms-media4u-login.php:33

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (SMS Media4u Login - Options), #2 (SMS Media4u Login - Profile Options), #3 (SMS Media4u Login - Login Screen)
The official readme.txt might help

sms-media4u-login/sms-media4u-login.php 85% from 13 tests

The main PHP file in "SMS Media4u Login" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("/")
  • Domain Path: Prefix the domain path with a forward slash character ("//")

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
No dangerous file extensions were detected364 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13523227
PO File11,5393,330137

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png7.50KB3.40KB▼ 54.75%
screenshot-3.png15.88KB7.14KB▼ 55.06%
screenshot-1.png22.17KB9.56KB▼ 56.87%