74% pepro-cf7-sms-notifier

Code Review | PeproDev CF7 SMS Notifier

WordPress plugin PeproDev CF7 SMS Notifier scored 74% from 54 tests.

About plugin

  • Plugin page: pepro-cf7-sms-not...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Jan 26, 2022
  • Number of updates: 11
  • Update frequency: every 49.8 days
  • Top authors: peprodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,093 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▲0.22ms] Passed 4 tests

This is a short check of server-side resources used by PeproDev CF7 SMS Notifier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3040.41 ▼2.99
Dashboard /wp-admin3.60 ▲0.3048.41 ▲2.15
Posts /wp-admin/edit.php3.72 ▲0.3650.92 ▼2.70
Add New Post /wp-admin/post-new.php6.20 ▲0.32101.65 ▲9.69
Media Library /wp-admin/upload.php3.52 ▲0.3040.09 ▲4.42
CF7 SMS /wp-admin/admin.php?page=cf7sms3.5135.97
Setting /wp-admin/admin.php?page=cf7sms-setting3.5035.18

Server storage [IO: ▲0.69MB] [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: 32 new files
Database: 1 new table, 11 new options
New tables
wp_cf7sms
New WordPress options
cf7sms-line_number
cf7sms-cleardbunistall
widget_recent-posts
cf7sms-user_api_key
widget_recent-comments
db_upgraded
theysaidso_admin_options
cf7sms-user_secret_key
cf7sms-clearunistall
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by PeproDev CF7 SMS Notifier
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲12313.20 ▼1.101.62 ▼0.4839.67 ▼4.73
Dashboard /wp-admin2,286 ▲1045.89 ▲0.9898.62 ▼3.4182.66 ▲41.58
Posts /wp-admin/edit.php2,169 ▲801.98 ▼0.0538.17 ▼3.2635.07 ▼0.89
Add New Post /wp-admin/post-new.php1,744 ▲21122.37 ▼0.60681.14 ▲25.6343.62 ▼9.86
Media Library /wp-admin/upload.php1,462 ▲714.13 ▼0.0398.71 ▼6.2267.66 ▲21.78
CF7 SMS /wp-admin/admin.php?page=cf7sms1,0622.3234.0745.32
Setting /wp-admin/admin.php?page=cf7sms-setting9842.1324.6428.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_cf7sms
  • Zombie WordPress options were found after uninstall: 11 options
    • cf7sms-line_number
    • cf7sms-user_api_key
    • cf7sms-clearunistall
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • cf7sms-cleardbunistall
    • widget_recent-comments
    • ...

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pepro-cf7-sms-notifier/pepro-cf7-sms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wordpress contact form, contact form 7, cf7 database, contact form 7 sms, cf7 sms...

pepro-cf7-sms-notifier/pepro-cf7-sms.php 85% from 13 tests

This is the main PHP file of "PeproDev CF7 SMS Notifier" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("pepro-cf7-sms-notifier.php" instead of "pepro-cf7-sms.php")

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
No dangerous file extensions were detected5,624 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS7357222,059
JavaScript71742311,999
PHP1764321,138
PO File1128136380
SVG14047
HTML1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity130.00
▷ Minimum class complexity130.00
▷ Maximum class complexity130.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods45
▷ Static methods511.11%
▷ Public methods3782.22%
▷ Protected methods511.11%
▷ Private methods36.67%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_both.png0.20KB0.29KB0.00%
assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/sort_asc_disabled.png0.14KB0.25KB0.00%