74% mediaburst-email-to-sms

Code Review | Clockwork SMS Notfications

WordPress plugin Clockwork SMS Notfications scored74%from 54 tests.

About plugin

  • Plugin page: mediaburst-email-...
  • Plugin version: 3.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 29, 2011
  • Latest release: Jan 8, 2018
  • Number of updates: 59
  • Update frequency: every 39.9 days
  • Top authors: simonwheatley (61.02%)martinsteel (22.03%)mediaburst (11.86%)jamesinman (10.17%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /13,622 total downloads

Benchmarks

Plugin footprint 65% 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.06MB] [CPU: ▼1.59ms] Passed 4 tests

Analyzing server-side resources used by Clockwork SMS Notfications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.59 ▼2.00
Dashboard /wp-admin3.36 ▲0.0650.74 ▲0.98
Posts /wp-admin/edit.php3.47 ▲0.1248.68 ▼2.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0799.43 ▼2.31
Media Library /wp-admin/upload.php3.28 ▲0.0634.01 ▲0.47

Server storage [IO: ▲0.16MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: 3 new tables, 10 new options
New tables
wp_sms_countries
wp_sms_subscribers
wp_sms_networks
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
clockwork_sms_notifications
widget_theysaidso_widget
clockwork_sms_notifications_db_version
clockwork_sms_notifications_upgraded
widget_sms_notification_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clockwork SMS Notfications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲16013.88 ▼0.398.00 ▲6.1439.95 ▼0.61
Dashboard /wp-admin2,207 ▲275.71 ▲0.0386.00 ▼6.6775.00 ▲35.17
Posts /wp-admin/edit.php2,127 ▲242.04 ▲0.0434.16 ▼6.2933.12 ▼4.69
Add New Post /wp-admin/post-new.php1,552 ▲2423.28 ▲0.07618.24 ▼25.45160.27 ▲102.19
Media Library /wp-admin/upload.php1,424 ▲244.28 ▲0.12101.99 ▼5.4574.34 ▲27.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_sms_countries
    • wp_sms_subscribers
    • wp_sms_networks
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_sms_notification_widget
    • clockwork_sms_notifications_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • clockwork_sms_notifications_db_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • clockwork_sms_notifications

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mediaburst-email-to-sms/main.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mediaburst-email-to-sms/clockwork-sms-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mediaburst-email-to-sms/mediaburst-email-2-sms.php:82
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mediaburst-email-to-sms/lib/class-clockwork-table.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: free sms, clockwork, mediaburst, text message, sms...

mediaburst-email-to-sms/mediaburst-email-2-sms.php 85% from 13 tests

The primary PHP file in "Clockwork SMS Notfications" version 3.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mediaburst-email-to-sms.php" instead of "mediaburst-email-2-sms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,812 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP193648221,695
JavaScript230392
CSS14025

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.44
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes333.33%
▷ Concrete classes666.67%
▷ Final classes00.00%
Methods79
▷ Static methods22.53%
▷ Public methods6987.34%
▷ Protected methods911.39%
▷ Private methods11.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo_16px_16px.png0.43KB0.31KB▼ 27.56%
screenshot-2.png10.06KB10.02KB0.42%
screenshot-3.png7.75KB7.61KB▼ 1.84%
images/logo_32px_32px.png0.76KB0.45KB▼ 40.95%
screenshot-4.png15.78KB15.49KB▼ 1.87%