10% 59sec-lite-contact-form-7-push-notifications-on-ios-and-android

Code Review | THE Leads Management System: 59sec LITE

WordPress plugin THE Leads Management System: 59sec LITE scored 10% from 54 tests.

About plugin

  • Plugin page: 59sec-lite-contac...
  • Plugin version: 3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3.1
  • WordPress version: 5.9.2
  • First release: May 27, 2014
  • Latest release: Oct 15, 2015
  • Number of updates: 73
  • Update frequency: every 7.2 days
  • Top authors: kuantero (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 2,562 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/59sec.php+112
    file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Server metrics [RAM: ▼1.20MB] [CPU: ▼329.84ms] Passed 4 tests

Analyzing server-side resources used by THE Leads Management System: 59sec LITE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0352.30 ▲3.80
Dashboard /wp-admin3.13 ▼0.2818.32 ▼16.32
Posts /wp-admin/edit.php3.13 ▼0.5116.59 ▼18.90
Add New Post /wp-admin/post-new.php3.13 ▼3.8416.33 ▼1,272.56
Media Library /wp-admin/upload.php3.13 ▼0.1715.99 ▼11.57
Users /wp-admin/admin.php?page=59sec_users3.1317.13
Entry Sources /wp-admin/admin.php?page=59sec_entry_sources3.1323.34
Notifications /wp-admin/admin.php?page=59sec_notifications3.1316.78
Please Feedback! /wp-admin/admin.php?page=59sec_feedback3.1316.08
Other Options /wp-admin/admin.php?page=59sec_other_options3.1317.62
Statistics /wp-admin/admin.php?page=59sec_statistics_boss3.1315.84
CRM /wp-admin/admin.php?page=59sec_crm_boss3.1316.49
LEADS /wp-admin/admin.php?page=59sec_leads_boss3.1316.60
Help /wp-admin/admin.php?page=59sec_help_boss3.1316.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 2 new options
New tables
wp_59_tokens
wp_59_leads
New WordPress options
59sec_version
59sec_liveupdate

Browser metrics Passed 4 tests

Checking browser requirements for THE Leads Management System: 59sec LITE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,026 ▼1,72814.69 ▼0.856.22 ▲0.343.01 ▲0.64
Dashboard /wp-admin2,957 ▲996.08 ▼0.11115.01 ▼19.68185.88 ▲28.05
Posts /wp-admin/edit.php2,757 ▲663.12 ▼0.1262.35 ▼0.99135.28 ▼7.57
Add New Post /wp-admin/post-new.php1,711 ▲5118.03 ▲0.52384.45 ▼29.82197.96 ▲28.36
Media Library /wp-admin/upload.php1,764 ▲665.55 ▲0.09122.57 ▼12.28210.78 ▲21.32
Users /wp-admin/admin.php?page=59sec_users1,1562.4257.77104.67
Entry Sources /wp-admin/admin.php?page=59sec_entry_sources1,1552.4354.00104.11
Notifications /wp-admin/admin.php?page=59sec_notifications1,1572.4153.54101.05
Please Feedback! /wp-admin/admin.php?page=59sec_feedback1,1602.4152.07100.17
Other Options /wp-admin/admin.php?page=59sec_other_options1,1562.4152.07100.33
Statistics /wp-admin/admin.php?page=59sec_statistics_boss1,1552.6152.67100.12
CRM /wp-admin/admin.php?page=59sec_crm_boss1,1562.6151.9499.36
LEADS /wp-admin/admin.php?page=59sec_leads_boss1,1242.4152.79100.21
Help /wp-admin/admin.php?page=59sec_help_boss1,0552.4352.3498.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/59sec.php+263
    Only variables should be passed by reference
  • Zombie tables detected upon uninstall: 2 tables
    • wp_59_leads
    • wp_59_tokens
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • 59sec_version
    • 59sec_liveupdate

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=59sec_help_boss
    • > Notice in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/59sec.php+263
    Only variables should be passed by reference
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=59sec_help_boss
    • > User deprecated in wp-includes/functions.php+5316
    add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/status.php
    • > /wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/warning.php
  • 71× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: paging in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/crm_table.php on line 13
    • > PHP Warning
      include(): Failed opening '_59SEC_INCLUDE_PATH/templates/59sec_statistics.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/59sec_statistics_boss.php on line 1
    • > PHP Notice
      Undefined variable: paging in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/crm_table.php on line 5
    • > PHP Notice
      Undefined variable: paging in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/crm_table.php on line 7
    • > PHP Warning
      Use of undefined constant _59SEC_INCLUDE_PATH - assumed '_59SEC_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/59sec_crm_boss.php on line 1
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/crm_table.php on line 13
    • > PHP Notice
      Undefined variable: headers in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/crm_table.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function getAppTokens() on null in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/simplepush.php:9
    • > PHP Warning
      include(_59SEC_INCLUDE_PATH/templates/59sec_crm.php): failed to open stream: No such file or directory in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/59sec_crm_boss.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function getTotalUnansweredLeads() on null in wp-content/plugins/59sec-lite-contact-form-7-push-notifications-on-ios-and-android/templates/59sec_entry_sources.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
The official readme.txt is a good inspiration

59sec-lite-contact-form-7-push-notifications-on-ios-and-android/59sec.php 85% from 13 tests

The entry point to "THE Leads Management System: 59sec LITE" version 3.4.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 274 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("59sec-lite-contact-form-7-push-notifications-on-ios-and-android.php" instead of "59sec.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,668 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP224362202,393
JavaScript2475193
CSS19982

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity39.50
▷ Minimum class complexity5.00
▷ Maximum class complexity74.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/adown.png2.82KB0.15KB▼ 94.77%
images/aup.png2.82KB0.15KB▼ 94.69%
images/25.png0.91KB0.87KB▼ 4.20%
images/SalesResponseRates1.png66.82KB28.66KB▼ 57.11%